diff --git a/.changeset/nine-colts-watch.md b/.changeset/nine-colts-watch.md new file mode 100644 index 000000000000..0ed50f86f40d --- /dev/null +++ b/.changeset/nine-colts-watch.md @@ -0,0 +1,8 @@ +--- +'@modern-js/plugin-module-import': patch +'@modern-js/module-tools': patch +'@modern-js/builder-plugin-swc': patch +--- + +chore: bump swc +chore: 升级 swc diff --git a/packages/builder/plugin-swc/package.json b/packages/builder/plugin-swc/package.json index 4aa895c11e8c..6bf3c4c1bf14 100644 --- a/packages/builder/plugin-swc/package.json +++ b/packages/builder/plugin-swc/package.json @@ -64,7 +64,7 @@ "@babel/preset-react": "^7.22.15", "@babel/preset-typescript": "^7.22.15", "@modern-js/builder-shared": "workspace:*", - "@modern-js/swc-plugins": "0.6.5", + "@modern-js/swc-plugins": "0.6.6", "@modern-js/utils": "workspace:*", "@swc/helpers": "0.5.3", "core-js": "~3.32.1" diff --git a/packages/module/plugin-module-import/package.json b/packages/module/plugin-module-import/package.json index b891fa4d9d02..160fa000d3d6 100644 --- a/packages/module/plugin-module-import/package.json +++ b/packages/module/plugin-module-import/package.json @@ -33,7 +33,7 @@ "test": "jest --passWithNoTests" }, "dependencies": { - "@modern-js/swc-plugins": "0.6.5", + "@modern-js/swc-plugins": "0.6.6", "@swc/helpers": "0.5.3" }, "devDependencies": { diff --git a/packages/solutions/module-tools/package.json b/packages/solutions/module-tools/package.json index 0fc8b0585c37..d6f54833b8a6 100644 --- a/packages/solutions/module-tools/package.json +++ b/packages/solutions/module-tools/package.json @@ -63,7 +63,7 @@ "@modern-js/plugin-changeset": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", "@modern-js/plugin-lint": "workspace:*", - "@modern-js/swc-plugins": "0.6.5", + "@modern-js/swc-plugins": "0.6.6", "@modern-js/types": "workspace:*", "@modern-js/upgrade": "workspace:*", "@modern-js/utils": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50b85226cea6..6530b17cdfe1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -598,8 +598,8 @@ importers: specifier: workspace:* version: link:../builder-shared '@modern-js/swc-plugins': - specifier: 0.6.5 - version: 0.6.5(@swc/helpers@0.5.3) + specifier: 0.6.6 + version: 0.6.6(@swc/helpers@0.5.3) '@modern-js/utils': specifier: workspace:* version: link:../../toolkit/utils @@ -3159,8 +3159,8 @@ importers: packages/module/plugin-module-import: dependencies: '@modern-js/swc-plugins': - specifier: 0.6.5 - version: 0.6.5(@swc/helpers@0.5.3) + specifier: 0.6.6 + version: 0.6.6(@swc/helpers@0.5.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -4796,8 +4796,8 @@ importers: specifier: workspace:* version: link:../../cli/plugin-lint '@modern-js/swc-plugins': - specifier: 0.6.5 - version: 0.6.5(@swc/helpers@0.5.3) + specifier: 0.6.6 + version: 0.6.6(@swc/helpers@0.5.3) '@modern-js/types': specifier: workspace:* version: link:../../toolkit/types @@ -12370,6 +12370,16 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-darwin-arm64@0.6.6: + resolution: {integrity: sha512-+Iz8/HkWyG97EcAWWAzSXI0nUAP1LOkuWjx6+anHIEhMW/pO2UowBM73j7FTIzuDgnREcF535v/3FLKzmD0I+w==} + engines: {node: '>=14.12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-darwin-x64@0.6.5: @@ -12378,6 +12388,16 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-darwin-x64@0.6.6: + resolution: {integrity: sha512-1cpmJl47yntCPku3TcO+9OsRo4k6JZncBGdPsGVFrcXWwZDZNz2CqIrjsMuAwEEXzDzGlWdH4iWfFk3oTDCnHw==} + engines: {node: '>=14.12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-linux-arm64-gnu@0.6.5: @@ -12386,6 +12406,16 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-linux-arm64-gnu@0.6.6: + resolution: {integrity: sha512-MuCLY5SE05i51BvBJtFOk0VT3lhNyK0uKRqybqTBjo7KbaQe0tpIe4/9mKq10C+PkhqgpQVznNIEMaXlkryAYA==} + engines: {node: '>=14.12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-linux-arm64-musl@0.6.5: @@ -12394,6 +12424,16 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-linux-arm64-musl@0.6.6: + resolution: {integrity: sha512-ubrQxzfGQslD4L7kgC4be/RwN1QONkqMQCPFQhZOJtTt2yoQci9KH8NLZwBKof5HyuVOO10p9Gx8sgSWaNOUEw==} + engines: {node: '>=14.12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-linux-x64-gnu@0.6.5: @@ -12402,6 +12442,16 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-linux-x64-gnu@0.6.6: + resolution: {integrity: sha512-T++2bVDP6ZlANX8QmQRtDgCsG5nXWq1jIG2otNo3vCY/p3iH4O38wVBI2rnwcUDSgRfSNIeVRTkQEkMsCwKniA==} + engines: {node: '>=14.12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-linux-x64-musl@0.6.5: @@ -12410,6 +12460,16 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-linux-x64-musl@0.6.6: + resolution: {integrity: sha512-Iw0GaM+OeNLOpqirsAnKtPbu+QDaMUJoddAC9HUnXori8NDbgslXPmjuz+W+/AxkIfBLygmDlO6THJiaViZgNA==} + engines: {node: '>=14.12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-win32-arm64-msvc@0.6.5: @@ -12418,6 +12478,16 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-win32-arm64-msvc@0.6.6: + resolution: {integrity: sha512-fn8/2JirxrxQMzMediFeJq7r65j42+lfgB4AzFiJE1LV8LuEx4m2yiPApRwDuekyLpO+kf8aHAi78Q6VQ/2+vg==} + engines: {node: '>=14.12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins-win32-x64-msvc@0.6.5: @@ -12426,6 +12496,16 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: true + optional: true + + /@modern-js/swc-plugins-win32-x64-msvc@0.6.6: + resolution: {integrity: sha512-5J/QwlJAMpmWGXrX5/7oY2Aeq5EsXMhFwIAxfJIFbUC2ZpeyJnlnxRvWsVuwwGwK3wAEHkOZAX6b4D8fXmsKdw==} + engines: {node: '>=14.12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false optional: true /@modern-js/swc-plugins@0.6.5(@swc/helpers@0.5.3): @@ -12444,6 +12524,25 @@ packages: '@modern-js/swc-plugins-linux-x64-musl': 0.6.5 '@modern-js/swc-plugins-win32-arm64-msvc': 0.6.5 '@modern-js/swc-plugins-win32-x64-msvc': 0.6.5 + dev: true + + /@modern-js/swc-plugins@0.6.6(@swc/helpers@0.5.3): + resolution: {integrity: sha512-/aBu5RnYq5o+93gZohc2Rb0PrbqMXzTnLOTu6Mth9hyR+POGJq2k8eOurSezccjvLNIQbXvgv2KtADOoYSgDxg==} + engines: {node: '>=14.17.6'} + peerDependencies: + '@swc/helpers': 0.5.3 + dependencies: + '@swc/helpers': 0.5.3 + optionalDependencies: + '@modern-js/swc-plugins-darwin-arm64': 0.6.6 + '@modern-js/swc-plugins-darwin-x64': 0.6.6 + '@modern-js/swc-plugins-linux-arm64-gnu': 0.6.6 + '@modern-js/swc-plugins-linux-arm64-musl': 0.6.6 + '@modern-js/swc-plugins-linux-x64-gnu': 0.6.6 + '@modern-js/swc-plugins-linux-x64-musl': 0.6.6 + '@modern-js/swc-plugins-win32-arm64-msvc': 0.6.6 + '@modern-js/swc-plugins-win32-x64-msvc': 0.6.6 + dev: false /@modern-js/utils@2.37.2: resolution: {integrity: sha512-w9qsxogSrvUBHmBPKjr7vqV9b6HkzcSd7Ps0KhBaB+iAfv2fNumVELA/zWqtRyJdlXvMB0Y3ilYB9+XM17NmNw==}