Upgrade to Babel 8, Vite 8, and babel-plugin-ember-template-compilation 4
Bump @babel/core, @babel/eslint-parser, @babel/plugin-transform-runtime, and @babel/runtime to ^8.x. Remove useESModules and regenerator options from @babel/plugin-transform-runtime config (both removed in Babel 8). Switch @babel/eslint-parser import from the removed /experimental-worker entry point to the main entry point. Bump vite to ^8.0.0 (now using Rolldown/Oxc instead of esbuild/Rollup). Bump @rollup/plugin-babel to ^7.1.0 and babel-plugin-ember-template-compilation to ^4.0.0. Patch ember-concurrency@5.2.0 to remove the api.assertVersion(7) call that is incompatible with Babel 8 (ember-concurrency has not yet released a Babel 8-compatible version).
This commit is contained in:
@@ -37,8 +37,6 @@ export default {
|
|||||||
'@babel/plugin-transform-runtime',
|
'@babel/plugin-transform-runtime',
|
||||||
{
|
{
|
||||||
absoluteRuntime: dirname(fileURLToPath(import.meta.url)),
|
absoluteRuntime: dirname(fileURLToPath(import.meta.url)),
|
||||||
useESModules: true,
|
|
||||||
regenerator: false,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
...macros.babelMacros,
|
...macros.babelMacros,
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ import eslintConfigPrettier from 'eslint-config-prettier';
|
|||||||
import qunit from 'eslint-plugin-qunit';
|
import qunit from 'eslint-plugin-qunit';
|
||||||
import n from 'eslint-plugin-n';
|
import n from 'eslint-plugin-n';
|
||||||
|
|
||||||
import babelParser from '@babel/eslint-parser/experimental-worker';
|
import babelParser from '@babel/eslint-parser';
|
||||||
|
|
||||||
const esmParserOptions = {
|
const esmParserOptions = {
|
||||||
ecmaFeatures: { modules: true },
|
ecmaFeatures: { modules: true },
|
||||||
|
|||||||
+7
-7
@@ -39,10 +39,10 @@
|
|||||||
"version": "pnpm build && git add release/"
|
"version": "pnpm build && git add release/"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.28.5",
|
"@babel/core": "^8.0.1",
|
||||||
"@babel/eslint-parser": "^7.28.5",
|
"@babel/eslint-parser": "^8.0.1",
|
||||||
"@babel/plugin-transform-runtime": "^7.28.5",
|
"@babel/plugin-transform-runtime": "^8.0.1",
|
||||||
"@babel/runtime": "^7.28.4",
|
"@babel/runtime": "^8.0.0",
|
||||||
"@ember/test-helpers": "^5.4.3",
|
"@ember/test-helpers": "^5.4.3",
|
||||||
"@ember/test-waiters": "^4.1.2",
|
"@ember/test-waiters": "^4.1.2",
|
||||||
"@embroider/core": "^4.6.3",
|
"@embroider/core": "^4.6.3",
|
||||||
@@ -53,13 +53,13 @@
|
|||||||
"@eslint/js": "^9.39.2",
|
"@eslint/js": "^9.39.2",
|
||||||
"@glimmer/component": "^2.1.1",
|
"@glimmer/component": "^2.1.1",
|
||||||
"@remotestorage/module-places": "~1.3.0",
|
"@remotestorage/module-places": "~1.3.0",
|
||||||
"@rollup/plugin-babel": "^6.1.0",
|
"@rollup/plugin-babel": "^7.1.0",
|
||||||
"@warp-drive/core": "~5.8.2",
|
"@warp-drive/core": "~5.8.2",
|
||||||
"@warp-drive/ember": "~5.8.2",
|
"@warp-drive/ember": "~5.8.2",
|
||||||
"@warp-drive/json-api": "~5.8.2",
|
"@warp-drive/json-api": "~5.8.2",
|
||||||
"@warp-drive/legacy": "~5.8.2",
|
"@warp-drive/legacy": "~5.8.2",
|
||||||
"@warp-drive/utilities": "~5.8.2",
|
"@warp-drive/utilities": "~5.8.2",
|
||||||
"babel-plugin-ember-template-compilation": "^3.0.1",
|
"babel-plugin-ember-template-compilation": "^4.0.0",
|
||||||
"concurrently": "^9.2.1",
|
"concurrently": "^9.2.1",
|
||||||
"decorator-transforms": "^2.4.0",
|
"decorator-transforms": "^2.4.0",
|
||||||
"ember-cli": "^6.12.0",
|
"ember-cli": "^6.12.0",
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
"stylelint": "^16.26.1",
|
"stylelint": "^16.26.1",
|
||||||
"stylelint-config-standard": "^38.0.0",
|
"stylelint-config-standard": "^38.0.0",
|
||||||
"testem": "^3.20.1",
|
"testem": "^3.20.1",
|
||||||
"vite": "^7.3.0"
|
"vite": "^8.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 22"
|
"node": ">= 22"
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/async-arrow-task-transform.js b/async-arrow-task-transform.js
|
||||||
|
index 4eb856a2a7753ef583e10e07f2b602c0c1c0c21d..6a808d035834567dcfc491ecaa7f59e77d344887 100644
|
||||||
|
--- a/async-arrow-task-transform.js
|
||||||
|
+++ b/async-arrow-task-transform.js
|
||||||
|
@@ -331,7 +331,7 @@ function cleanupUnusedTaskFactoryImports(programPath, usedTaskFactories) {
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = declare((api) => {
|
||||||
|
- api.assertVersion(7);
|
||||||
|
+ // api.assertVersion(7);
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'transform-ember-concurrency-async-function-tasks',
|
||||||
Generated
+695
-110
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
|||||||
|
patchedDependencies:
|
||||||
|
ember-concurrency@5.2.0: patches/ember-concurrency@5.2.0.patch
|
||||||
Reference in New Issue
Block a user