File tree 5 files changed +16
-14
lines changed
5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ module.exports = {
57
57
'./lib/**/*.js' ,
58
58
'./tests/dummy/config/**/*.js' ,
59
59
'./tests-node/**/*.js' ,
60
+ 'babel.config.js' ,
60
61
] ,
61
62
parserOptions : {
62
63
sourceType : 'script' ,
Original file line number Diff line number Diff line change 37
37
/bower.json.ember-try
38
38
/package.json.ember-try
39
39
/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' ) ;
2
6
3
7
module . exports = {
4
- plugins : [
5
- [
6
- require ( '@babel/plugin-proposal-decorators' ) . default ,
7
- {
8
- legacy : true ,
9
- } ,
10
- ] ,
11
- ] ,
8
+ plugins : [ ...buildEmberPlugins ( __dirname ) ] ,
12
9
} ;
Original file line number Diff line number Diff line change 102
102
"yuidocjs" : " ^0.10.2"
103
103
},
104
104
"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 " ,
107
107
"@ember/optional-features" : " ^2.0.0" ,
108
108
"@ember/test-helpers" : " ^2.4.2" ,
109
109
"@embroider/test-setup" : " ^0.47.2" ,
Original file line number Diff line number Diff line change 35
35
semver "^6.3.0"
36
36
source-map "^0.5.0"
37
37
38
- "@babel/eslint-parser@^7.16.0 ":
38
+ "@babel/eslint-parser@^7.16.3 ":
39
39
version "7.16.3"
40
40
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz#2a6b1702f3f5aea48e00cea5a5bcc241c437e459"
41
41
integrity sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==
307
307
"@babel/helper-plugin-utils" "^7.14.5"
308
308
"@babel/plugin-syntax-class-static-block" "^7.14.5"
309
309
310
- "@babel/plugin-proposal-decorators@^7.13.5", "@babel/plugin-proposal-decorators@^7.16.0" :
310
+ "@babel/plugin-proposal-decorators@^7.13.5":
311
311
version "7.16.4"
312
312
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.16.4.tgz#9b35ce0716425a93b978e79099e5f7ba217c1364"
313
313
integrity sha512-RESBNX16eNqnBeEVR5sCJpnW0mHiNLNNvGA8PrRuK/4ZJ4TO+6bHleRUuGQYDERVySOKtOhSya/C4MIhwAMAgg==
840
840
core-js "^2.6.5"
841
841
regenerator-runtime "^0.13.4"
842
842
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" :
844
844
version "7.16.4"
845
845
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.16.4.tgz#4f6ec33b2a3fe72d6bfdcdf3859500232563a2e3"
846
846
integrity sha512-v0QtNd81v/xKj4gNKeuAerQ/azeNn/G1B1qMLeXOcV8+4TWlD2j3NV1u8q29SDFBXx/NBq5kyEAO+0mpRgacjA==
You can’t perform that action at this time.
0 commit comments