File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ module.exports = {
5757 './lib/**/*.js' ,
5858 './tests/dummy/config/**/*.js' ,
5959 './tests-node/**/*.js' ,
60+ 'babel.config.js' ,
6061 ] ,
6162 parserOptions : {
6263 sourceType : 'script' ,
Original file line number Diff line number Diff line change 3737/bower.json.ember-try
3838/package.json.ember-try
3939/test-apps
40+
41+ # TODO: should be removed (so that it is included!) once
42+ # https://github.com/ember-modifier/ember-modifier/issues/102 is resolved
43+ /babel.config.js
Original file line number Diff line number Diff line change 1- /* eslint-env node */
1+ // TODO: this is currently only being used by ESLint via @babel /eslint-parser.
2+ // When https://github.com/babel/ember-cli-babel/issues/418 gets resolved,
3+ // we can switch to using it throughout properly.
4+
5+ const { buildEmberPlugins } = require ( 'ember-cli-babel' ) ;
26
37module . exports = {
4- plugins : [
5- [
6- require ( '@babel/plugin-proposal-decorators' ) . default ,
7- {
8- legacy : true ,
9- } ,
10- ] ,
11- ] ,
8+ plugins : [ ...buildEmberPlugins ( __dirname ) ] ,
129} ;
Original file line number Diff line number Diff line change 102102 "yuidocjs" : " ^0.10.2"
103103 },
104104 "devDependencies" : {
105- "@babel/eslint-parser" : " ^7.16.0 " ,
106- "@babel/plugin-proposal-decorators " : " ^7.16.0 " ,
105+ "@babel/eslint-parser" : " ^7.16.3 " ,
106+ "@babel/preset-env " : " ^7.16.4 " ,
107107 "@ember/optional-features" : " ^2.0.0" ,
108108 "@ember/test-helpers" : " ^2.4.2" ,
109109 "@embroider/test-setup" : " ^0.47.2" ,
Original file line number Diff line number Diff line change 3535 semver "^6.3.0"
3636 source-map "^0.5.0"
3737
38- "@babel/eslint-parser@^7.16.0 ":
38+ "@babel/eslint-parser@^7.16.3 ":
3939 version "7.16.3"
4040 resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz#2a6b1702f3f5aea48e00cea5a5bcc241c437e459"
4141 integrity sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==
307307 "@babel/helper-plugin-utils" "^7.14.5"
308308 "@babel/plugin-syntax-class-static-block" "^7.14.5"
309309
310- "@babel/plugin-proposal-decorators@^7.13.5", "@babel/plugin-proposal-decorators@^7.16.0" :
310+ "@babel/plugin-proposal-decorators@^7.13.5":
311311 version "7.16.4"
312312 resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.16.4.tgz#9b35ce0716425a93b978e79099e5f7ba217c1364"
313313 integrity sha512-RESBNX16eNqnBeEVR5sCJpnW0mHiNLNNvGA8PrRuK/4ZJ4TO+6bHleRUuGQYDERVySOKtOhSya/C4MIhwAMAgg==
840840 core-js "^2.6.5"
841841 regenerator-runtime "^0.13.4"
842842
843- "@babel/preset-env@^7.10.2", "@babel/preset-env@^7.12.0":
843+ "@babel/preset-env@^7.10.2", "@babel/preset-env@^7.12.0", "@babel/preset-env@^7.16.4" :
844844 version "7.16.4"
845845 resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.16.4.tgz#4f6ec33b2a3fe72d6bfdcdf3859500232563a2e3"
846846 integrity sha512-v0QtNd81v/xKj4gNKeuAerQ/azeNn/G1B1qMLeXOcV8+4TWlD2j3NV1u8q29SDFBXx/NBq5kyEAO+0mpRgacjA==
You can’t perform that action at this time.
0 commit comments