-
Notifications
You must be signed in to change notification settings - Fork 28
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
Updated the addon package's Babel configuration #127
Changes from all commits
a8d6cc5
de7f1e7
b9ba7ff
3cb4676
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
<% if (typescript) { %> "presets": [["@babel/preset-typescript"]], | ||
<% } %> "plugins": [<% if (typescript) { %> | ||
<% } %> "plugins": [ | ||
"@embroider/addon-dev/template-colocation-plugin",<% if (typescript) { %> | ||
["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],<% } %> | ||
"@embroider/addon-dev/template-colocation-plugin", | ||
["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }], | ||
["@babel/plugin-proposal-decorators", { "version": "legacy" }], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested |
||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
<% if (typescript) { %>"@babel/preset-typescript": "^7.18.6"<% } else { %>"@babel/eslint-parser": "^7.19.1"<% } %>, | ||
"@babel/plugin-proposal-class-properties": "^7.16.7", | ||
"@babel/plugin-proposal-decorators": "^7.20.13", | ||
"@babel/plugin-syntax-decorators": "^7.17.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To my knowledge,
|
||
"@babel/runtime": "^7.17.0", | ||
"@embroider/addon-dev": "^3.0.0",<% if (typescript) { %> | ||
"@glint/core": "^1.0.2", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I upstreamed the interpolation code from
ember-codemod-v1-to-v2
. The expected output can be seen in these tests: