feat(register): @swc-node/register/esm use TypeScript resolver#727
Merged
Brooooooklyn merged 4 commits intoSep 26, 2023
Merged
Conversation
Contributor
Author
|
This solves an issue I'm facing. With Current workaround that worked for me is changing the import to Just tested with this PR patched code and it works for both cases. |
tsang-bot Bot
referenced
this pull request
in tsangste/nx-package-test
Oct 1, 2023
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@swc-node/register](https://togithub.com/swc-project/swc-node) | [`1.6.7` -> `1.6.8`](https://renovatebot.com/diffs/npm/@swc-node%2fregister/1.6.7/1.6.8) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@swc/core](https://swc.rs) ([source](https://togithub.com/swc-project/swc)) | [`1.3.88` -> `1.3.90`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.3.88/1.3.90) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>swc-project/swc-node (@​swc-node/register)</summary> ### [`v1.6.8`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.8) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected]) #### What's Changed - fix(core): remove `jsc.module.noInterop` when it's not supported by [@​kdy1](https://togithub.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://togithub.com/swc-project/swc-node/pull/733) - chore: fix README for install, build, and test by [@​devjiwonchoi](https://togithub.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://togithub.com/swc-project/swc-node/pull/728) - feat(register): @​swc-node/register/esm use TypeScript resolver by [@​cm-ayf](https://togithub.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://togithub.com/swc-project/swc-node/pull/727) #### New Contributors - [@​devjiwonchoi](https://togithub.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://togithub.com/swc-project/swc-node/pull/728) - [@​cm-ayf](https://togithub.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://togithub.com/swc-project/swc-node/pull/727) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@​swc-node/core](https://togithub.com/swc-node/core)[@​1](https://togithub.com/1).10.5...[@​swc-node/register](https://togithub.com/swc-node/register)[@​1](https://togithub.com/1).6.8 </details> <details> <summary>swc-project/swc (@​swc/core)</summary> ### [`v1.3.90`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1390---2023-09-27) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.89...v1.3.90) ##### Bug Fixes - **(es/codegen)** Fix codegen of unicode surrogates ([#​7985](https://togithub.com/swc-project/swc/issues/7985)) ([39c680d](https://togithub.com/swc-project/swc/commit/39c680d814644fbde50b0f73a29aebe791812eb2)) - **(es/codegen)** Fix codegen of optional chaining expr with a comment ([#​8005](https://togithub.com/swc-project/swc/issues/8005)) ([f07bb48](https://togithub.com/swc-project/swc/commit/f07bb482e694a422591085621a38aff747294502)) - **(es/typescript)** Handle `DeclareCollect` correctly ([#​8008](https://togithub.com/swc-project/swc/issues/8008)) ([9d08b8a](https://togithub.com/swc-project/swc/commit/9d08b8a6145d486e570a22563c62a69722cf8759)) - **(es/typescript)** Handle qualified access in assign pat ([#​8012](https://togithub.com/swc-project/swc/issues/8012)) ([2f01aba](https://togithub.com/swc-project/swc/commit/2f01aba978415add87994f9b20e3e2db83fc48b6)) ### [`v1.3.89`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1389---2023-09-25) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.88...v1.3.89) ##### Bug Fixes - **(es)** Enable resolver if `jsc.baseUrl` is specified ([#​7998](https://togithub.com/swc-project/swc/issues/7998)) ([f374ad9](https://togithub.com/swc-project/swc/commit/f374ad903a066ebf3a7e54a3656cb3fc44b37445)) - **(es/compat)** Skip function scope in `block-scoped-fns` pass ([#​7975](https://togithub.com/swc-project/swc/issues/7975)) ([d91a554](https://togithub.com/swc-project/swc/commit/d91a554033c8ce0ea2b2538b0e86abf5a81eac76)) ##### Refactor - **(es/typescript)** Reimplement TypeScript pass ([#​7202](https://togithub.com/swc-project/swc/issues/7202)) ([9c9a538](https://togithub.com/swc-project/swc/commit/9c9a538f23cb2bcd2f46e156babf64c7a81db245)) </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4xLjQiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=--> Co-authored-by: tsang-bot[bot] <146107447+tsang-bot[bot]@users.noreply.github.com>
tsang-bot Bot
referenced
this pull request
in tsangste/nx-package-test
Feb 6, 2024
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@swc-node/register](https://togithub.com/swc-project/swc-node) | [`1.6.8` -> `1.8.0`](https://renovatebot.com/diffs/npm/@swc-node%2fregister/1.6.8/1.8.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [@swc/cli](https://togithub.com/swc-project/pkgs) ([source](https://togithub.com/node ./bin)) | [`0.3.5` -> `0.3.6`](https://renovatebot.com/diffs/npm/@swc%2fcli/0.3.5/0.3.6) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>swc-project/swc-node (@​swc-node/register)</summary> ### [`v1.8.0`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.8.0) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected]) #### What's Changed - fix(core): remove `jsc.module.noInterop` when it's not supported by [@​kdy1](https://togithub.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://togithub.com/swc-project/swc-node/pull/733) - chore: fix README for install, build, and test by [@​devjiwonchoi](https://togithub.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://togithub.com/swc-project/swc-node/pull/728) - feat(register): @​swc-node/register/esm use TypeScript resolver by [@​cm-ayf](https://togithub.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://togithub.com/swc-project/swc-node/pull/727) - chore(deps-dev): bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.22.10 to 7.23.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/swc-project/swc-node/pull/735](https://togithub.com/swc-project/swc-node/pull/735) - Fix [#​716](https://togithub.com/swc-project/swc-node/issues/716) by [@​eliellis](https://togithub.com/eliellis) in [https://github.com/swc-project/swc-node/pull/725](https://togithub.com/swc-project/swc-node/pull/725) - chore(deps-dev): bump axios from 1.3.5 to 1.6.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/swc-project/swc-node/pull/738](https://togithub.com/swc-project/swc-node/pull/738) - fix(core): respect useDefineForClassFields tsconfig value by [@​dsyddall](https://togithub.com/dsyddall) in [https://github.com/swc-project/swc-node/pull/740](https://togithub.com/swc-project/swc-node/pull/740) - fix(core): respect sourceMaps swcrc value by [@​dsyddall](https://togithub.com/dsyddall) in [https://github.com/swc-project/swc-node/pull/742](https://togithub.com/swc-project/swc-node/pull/742) - feat: add esm-register for node>20.6 by [@​yeliex](https://togithub.com/yeliex) in [https://github.com/swc-project/swc-node/pull/748](https://togithub.com/swc-project/swc-node/pull/748) - chore(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/swc-project/swc-node/pull/747](https://togithub.com/swc-project/swc-node/pull/747) - feat(core): support swc's `ignoreDynamic` option by [@​SukkaW](https://togithub.com/SukkaW) in [https://github.com/swc-project/swc-node/pull/745](https://togithub.com/swc-project/swc-node/pull/745) - fix: fix import ts from node_modules by [@​yeliex](https://togithub.com/yeliex) in [https://github.com/swc-project/swc-node/pull/744](https://togithub.com/swc-project/swc-node/pull/744) - Mention --enable-source-maps in README.md for esm projects. by [@​Xinkai](https://togithub.com/Xinkai) in [https://github.com/swc-project/swc-node/pull/737](https://togithub.com/swc-project/swc-node/pull/737) - feat: upgrade dependencies by [@​Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/751](https://togithub.com/swc-project/swc-node/pull/751) #### New Contributors - [@​devjiwonchoi](https://togithub.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://togithub.com/swc-project/swc-node/pull/728) - [@​cm-ayf](https://togithub.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://togithub.com/swc-project/swc-node/pull/727) - [@​eliellis](https://togithub.com/eliellis) made their first contribution in [https://github.com/swc-project/swc-node/pull/725](https://togithub.com/swc-project/swc-node/pull/725) - [@​dsyddall](https://togithub.com/dsyddall) made their first contribution in [https://github.com/swc-project/swc-node/pull/740](https://togithub.com/swc-project/swc-node/pull/740) - [@​SukkaW](https://togithub.com/SukkaW) made their first contribution in [https://github.com/swc-project/swc-node/pull/745](https://togithub.com/swc-project/swc-node/pull/745) - [@​Xinkai](https://togithub.com/Xinkai) made their first contribution in [https://github.com/swc-project/swc-node/pull/737](https://togithub.com/swc-project/swc-node/pull/737) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@​swc-node/core](https://togithub.com/swc-node/core)[@​1](https://togithub.com/1).10.5...[@​swc-node/register](https://togithub.com/swc-node/register)[@​1](https://togithub.com/1).8.0 </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3Mi4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9--> Co-authored-by: tsang-bot[bot] <146107447+tsang-bot[bot]@users.noreply.github.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently
@swc-node/register/esmhas its own implementation inregisterhook to resolve imports like./fooor./foo.ts. However, the resolution should be aligned with that by TypeScript (specificallytsserver) which is far more complicated.This PR just uses TypeScript resolver in
registerhook. In this way, the resolution will respect setting files such as tsconfig.json, package.json, and so on. Thus, this PR potentially fixes issues #710 and #724, and adds support forpathsintsconfig.json.As of the performance issue, it can be said that TypeScript resolver will not search deep into
node_modules; if parentURL is innode_modulesthe resolver falls back to default one, and so does if the resolution result. Note that TypeScript resolver itself is already fast enough.This PR also fixes the problem where
node --watch --loader @swc-node/register/esm main.tsdoes not refresh after editingmain.ts. this might have been a bug on the previous implementation.