From f8df700ea06be19f84b694815b4c8c74ef9508bd Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 26 Dec 2023 05:38:48 +0400 Subject: [PATCH] Drop babel plugins These are now part of ECMAScript. --- docs/ember-cli-build.js | 4 ---- docs/package.json | 2 -- docs/yarn.lock | 4 ++-- index.js | 11 ----------- package.json | 3 --- yarn.lock | 6 +++--- 6 files changed, 5 insertions(+), 25 deletions(-) diff --git a/docs/ember-cli-build.js b/docs/ember-cli-build.js index c8f72c6..b8be604 100644 --- a/docs/ember-cli-build.js +++ b/docs/ember-cli-build.js @@ -6,10 +6,6 @@ module.exports = function (defaults) { const app = new EmberApp(defaults, { snippetPaths: ['code-snippets'], - babel: { - plugins: ['@babel/plugin-proposal-optional-chaining'], - }, - 'ember-cli-babel': { disablePresetEnv: false, includePolyfill: false, diff --git a/docs/package.json b/docs/package.json index 1992a71..86562d8 100644 --- a/docs/package.json +++ b/docs/package.json @@ -31,8 +31,6 @@ "@babel/core": "^7.23.6", "@babel/eslint-parser": "^7.23.3", "@babel/plugin-proposal-decorators": "^7.23.6", - "@babel/plugin-proposal-optional-chaining": "^7.18.6", - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@ember/optional-features": "^2.0.0", "@ember/string": "^3.1.1", "@ember/test-helpers": "^3.2.1", diff --git a/docs/yarn.lock b/docs/yarn.lock index 5217179..0167758 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -713,7 +713,7 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-proposal-optional-chaining@^7.18.6", "@babel/plugin-proposal-optional-chaining@^7.20.7", "@babel/plugin-proposal-optional-chaining@^7.21.0", "@babel/plugin-proposal-optional-chaining@^7.6.0": +"@babel/plugin-proposal-optional-chaining@^7.20.7", "@babel/plugin-proposal-optional-chaining@^7.21.0", "@babel/plugin-proposal-optional-chaining@^7.6.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz#886f5c8978deb7d30f678b2e24346b287234d3ea" integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA== @@ -745,7 +745,7 @@ "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" -"@babel/plugin-proposal-private-property-in-object@^7.20.5", "@babel/plugin-proposal-private-property-in-object@^7.21.11": +"@babel/plugin-proposal-private-property-in-object@^7.20.5": version "7.21.11" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz#69d597086b6760c4126525cfa154f34631ff272c" integrity sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw== diff --git a/index.js b/index.js index 7fd3967..7ea9a60 100644 --- a/index.js +++ b/index.js @@ -63,17 +63,6 @@ function getCustomComponentsFromOptions(options) { module.exports = { name: require('./package').name, - options: { - babel: { - plugins: [ - // Must resolve these for the build test harness to find them. eslint is complaining about nothing. - // require.resolve('@babel/plugin-proposal-logical-assignment-operators'), // eslint-disable-line n/no-unpublished-require - // require.resolve('@babel/plugin-proposal-object-rest-spread'), // eslint-disable-line n/no-unpublished-require - // require.resolve('@babel/plugin-proposal-optional-chaining'), // eslint-disable-line n/no-unpublished-require - ], - }, - }, - init() { this._super.init.apply(this, arguments); this.debugTree = BroccoliDebug.buildDebugCallback( diff --git a/package.json b/package.json index 12cd1a7..8f32986 100644 --- a/package.json +++ b/package.json @@ -62,9 +62,6 @@ "devDependencies": { "@babel/eslint-parser": "^7.23.3", "@babel/plugin-proposal-decorators": "^7.23.6", - "@babel/plugin-proposal-logical-assignment-operators": "^7.14.5", - "@babel/plugin-proposal-object-rest-spread": "^7.16.0", - "@babel/plugin-proposal-optional-chaining": "^7.16.0", "@ember/optional-features": "^2.0.0", "@ember/test-helpers": "^3.2.1", "@embroider/test-setup": "^3.0.3", diff --git a/yarn.lock b/yarn.lock index b9ccf22..63c6fdf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -650,7 +650,7 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-proposal-logical-assignment-operators@^7.14.5", "@babel/plugin-proposal-logical-assignment-operators@^7.20.7": +"@babel/plugin-proposal-logical-assignment-operators@^7.20.7": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz#dfbcaa8f7b4d37b51e8bfb46d94a5aea2bb89d83" integrity sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug== @@ -674,7 +674,7 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-proposal-object-rest-spread@^7.16.0", "@babel/plugin-proposal-object-rest-spread@^7.20.7": +"@babel/plugin-proposal-object-rest-spread@^7.20.7": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz#aa662940ef425779c75534a5c41e9d936edc390a" integrity sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg== @@ -693,7 +693,7 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-proposal-optional-chaining@^7.16.0", "@babel/plugin-proposal-optional-chaining@^7.20.7", "@babel/plugin-proposal-optional-chaining@^7.21.0": +"@babel/plugin-proposal-optional-chaining@^7.20.7", "@babel/plugin-proposal-optional-chaining@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz#886f5c8978deb7d30f678b2e24346b287234d3ea" integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==