-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(js): update @swc/core and @swc/helpers packages #16372
Conversation
b5c1d8c
to
a0e27ab
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
a0e27ab
to
46f825a
Compare
d5cce4a
to
ea91cb3
Compare
@@ -71,11 +72,12 @@ async function addLinting(host: Tree, options: NormalizedSchema) { | |||
{ | |||
...extraEslintDependencies.devDependencies, | |||
...(options.compiler === 'swc' | |||
? { '@swc/core': swcCoreVersion, 'swc-loader': swcLoaderVersion } | |||
? { 'swc-loader': swcLoaderVersion } |
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.
Followup: I guess this is not part of addSwcDependencies
?
Let's add another function to the @nx/js
utils.
@@ -1,7 +1,6 @@ | |||
export const nxVersion = require('../../package.json').version; | |||
|
|||
export const swcLoaderVersion = '0.1.15'; | |||
export const swcHelpersVersion = '~0.4.11'; | |||
export const tsLibVersion = '^2.3.0'; |
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.
Followup: We should also use the util in @nx/js
for adding tslib
.
But that's not a part of the scope for this PR so let's do it separately.
3aec57d
to
47f403b
Compare
47f403b
to
9e7c50e
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR updates/migrates
@swc/core
,@swc/cli
, and@swc/helpers
packages to keep them aligned.We previously mixed
^
and~
version ranges, which lead to some problems when@swc/core
was updated to a version incompatible with the resolved@swc/helpers
package. Now they are all on~
range to mitigate these issues.Current Behavior
Expected Behavior
Related Issue(s)
Fixes #