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

feat(deps): bump babel to 7.26 #6453

Merged
merged 7 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-jokes-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/babel-preset': patch
---

feat(deps): bump babel to [7.26](https://babeljs.io/blog/2024/10/25/7.26.0) to support parse [import attributes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with) by default
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
]
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.22.15",
"@biomejs/biome": "1.9.4",
"@commitlint/cli": "^17.6.3",
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@
"test:watch": "vitest dev"
},
"dependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/plugin-proposal-export-default-from": "^7.24.7",
"@babel/plugin-proposal-partial-application": "^7.24.7",
"@babel/plugin-proposal-pipeline-operator": "^7.24.7",
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@babel/runtime": "^7.24.7",
"@babel/types": "^7.24.7",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/runtime": "^7.26.0",
"@babel/types": "^7.26.0",
"@rsbuild/plugin-babel": "~1.0.1",
"@swc/helpers": "0.5.13",
"@types/babel__core": "^7.20.5",
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/babel-preset/tests/__snapshots__/web.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`should allow to enable legacy decorator 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<ROOT>/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -81,7 +81,7 @@ exports[`should allow to enable specific version decorator 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<ROOT>/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -131,7 +131,7 @@ exports[`should provide web preset as expected 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<ROOT>/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -222,7 +222,7 @@ exports[`should support inject core-js polyfills by entry 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<ROOT>/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -275,7 +275,7 @@ exports[`should support inject core-js polyfills by usage 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<ROOT>/src/pluginLockCorejsVersion.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/plugin-bff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"test": "jest --passWithNoTests"
},
"dependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@modern-js/bff-core": "workspace:*",
"@modern-js/create-request": "workspace:*",
"@modern-js/server-core": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/plugin-data-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test": "jest --passWithNoTests"
},
"dependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@modern-js/runtime-utils": "workspace:*",
"@modern-js/utils": "workspace:*",
"@swc/helpers": "0.5.13",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"test:watch": "vitest dev"
},
"dependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/preset-react": "^7.22.15",
"@babel/types": "^7.24.7",
"@babel/types": "^7.26.0",
"@modern-js/babel-preset": "workspace:*",
"@modern-js/utils": "workspace:*",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
Expand Down
24 changes: 12 additions & 12 deletions packages/cli/uni-builder/tests/__snapshots__/babel.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ exports[`plugin-babel > should add core-js-entry when output.polyfill is entry 1
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -541,7 +541,7 @@ exports[`plugin-babel > should apply exclude condition when using source.exclude
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -683,7 +683,7 @@ exports[`plugin-babel > should not add core-js-entry when output.polyfill is usa
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -819,7 +819,7 @@ exports[`plugin-babel > should not have any pluginImport in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -927,7 +927,7 @@ exports[`plugin-babel > should not have any pluginImport in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1038,7 +1038,7 @@ exports[`plugin-babel > should not set default pluginImport for Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1165,7 +1165,7 @@ exports[`plugin-babel > should not set default pluginImport for Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1301,7 +1301,7 @@ exports[`plugin-babel > should override targets of babel-preset-env when using o
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1441,7 +1441,7 @@ exports[`plugin-babel > should set babel-loader 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1587,7 +1587,7 @@ exports[`plugin-babel > should set include/exclude 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1723,7 +1723,7 @@ exports[`plugin-babel > should set proper pluginImport option in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -1858,7 +1858,7 @@ exports[`plugin-babel > should set proper pluginImport option in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -3860,7 +3860,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -4299,7 +4299,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -4427,7 +4427,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -4959,7 +4959,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -5086,7 +5086,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -5531,7 +5531,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -5674,7 +5674,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports[`plugins/react > should work with babel-loader 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports[`plugins/styled-components > should enable ssr when target contain node
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -311,7 +311,7 @@ exports[`plugins/styled-components > should works in webpack babel mode 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ exports[`uni-builder webpack > should allow custom arco import config 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -634,7 +634,7 @@ exports[`uni-builder webpack > should apply arco correctly 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -777,7 +777,7 @@ exports[`uni-builder webpack > should not apply arco when transformImport false
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -901,7 +901,7 @@ exports[`uni-builder webpack > should not apply arco when transformImport return
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ exports[`plugin-ts-loader > should set include/exclude 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down Expand Up @@ -331,7 +331,7 @@ exports[`plugin-ts-loader > should set ts-loader 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.7",
"version": "7.26.0",
},
],
"<WORKSPACE>/packages/cli/babel-preset/src/pluginLockCorejsVersion.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/devtools/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
"ws": "^8.13.0"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@modern-js/app-tools": "workspace:*",
"@modern-js/core": "workspace:*",
"@modern-js/module-tools": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/module/plugin-module-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test": "jest --passWithNoTests"
},
"dependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@swc/helpers": "0.5.13"
},
"devDependencies": {
Expand Down
Loading
Loading