-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
fix(register): fix esm entry resolver for third-party executer, close #762 #766
Conversation
🦋 Changeset detectedLatest commit: 069b289 The changes in this PR will be included in the next version bump. 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 |
354f60b
to
cb31ec4
Compare
@Brooooooklyn @martinslota please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that with startsWith
instead of endsWith
this addresses #762.
…wc-project#762 (swc-project#766) * fix(register): fix esm entry resolver for third-party executor, close swc-project#762 * Create great-goats-trade.md * fix: bug fix
@Brooooooklyn Could you cut a release for this PR? |
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@swc-node/register](https://togithub.com/swc-project/swc-node) | [`1.9.0` -> `1.9.1`](https://renovatebot.com/diffs/npm/@swc-node%2fregister/1.9.0/1.9.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@swc-node%2fregister/1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc-node%2fregister/1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc-node%2fregister/1.9.0/1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc-node%2fregister/1.9.0/1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>swc-project/swc-node (@​swc-node/register)</summary> ### [`v1.9.1`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.9.1) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.9.0...@swc-node/register@1.9.1) #### What's Changed - fix: esm module resolve issues by [@​yeliex](https://togithub.com/yeliex) in [https://github.com/swc-project/swc-node/pull/754](https://togithub.com/swc-project/swc-node/pull/754) - fix: add default tsconfig.baseUrl to align with tsc behavior by [@​yeliex](https://togithub.com/yeliex) in [https://github.com/swc-project/swc-node/pull/759](https://togithub.com/swc-project/swc-node/pull/759) - fix(register): fix esm entry resolver for third-party executer, close [#​762](https://togithub.com/swc-project/swc-node/issues/762) by [@​yeliex](https://togithub.com/yeliex) in [https://github.com/swc-project/swc-node/pull/766](https://togithub.com/swc-project/swc-node/pull/766) - fix: support compile js files. close [#​761](https://togithub.com/swc-project/swc-node/issues/761) by [@​yeliex](https://togithub.com/yeliex) in [https://github.com/swc-project/swc-node/pull/767](https://togithub.com/swc-project/swc-node/pull/767) - chore: upgrade dependencies by [@​Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/771](https://togithub.com/swc-project/swc-node/pull/771) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@​swc-node/register](https://togithub.com/swc-node/register)[@​1](https://togithub.com/1).8.0...[@​swc-node/register](https://togithub.com/swc-node/register)[@​1](https://togithub.com/1).9.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuNiIsInVwZGF0ZWRJblZlciI6IjM3LjM0MC42IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: tsang-bot[bot] <146107447+tsang-bot[bot]@users.noreply.github.com>
Third-party executors like mocha, may import scripts with fileUrl absolute path.
This pr converts
specifier
from fileUrl to path.close #762