Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve relative paths using URL constructor and ignore directories #167

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

edoardocavazza
Copy link
Member

This PR should fix #164 by changing the way relative paths are resolved. In order to prevent recursion and directories, the plugin now resolves relativa paths using the URL constructor instead of the esbuild resolver.

Copy link

changeset-bot bot commented Mar 5, 2024

🦋 Changeset detected

Latest commit: 031a40c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chialab/esbuild-plugin-meta-url Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 52.00000% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 91.46%. Comparing base (d745e14) to head (031a40c).

Files Patch % Lines
packages/esbuild-plugin-meta-url/lib/index.js 52.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #167      +/-   ##
==========================================
- Coverage   91.64%   91.46%   -0.18%     
==========================================
  Files          36       36              
  Lines        5865     5883      +18     
==========================================
+ Hits         5375     5381       +6     
- Misses        490      502      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edoardocavazza edoardocavazza force-pushed the import-meta-url-ignore-directories branch from b104204 to 031a40c Compare March 5, 2024 10:58
@edoardocavazza edoardocavazza merged commit 773e8df into main Mar 5, 2024
6 of 8 checks passed
@edoardocavazza edoardocavazza deleted the import-meta-url-ignore-directories branch March 5, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esbuild-plugin-meta-url + quickjs-emscripten aborts
1 participant