-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Babel upgrade #594
Babel upgrade #594
Conversation
package.json
Outdated
@@ -18,7 +18,7 @@ | |||
"license": "MIT", | |||
"devDependencies": { | |||
"broccoli-asset-rev": "^2.4.5", | |||
"broccoli-babel-transpiler": "~5.6.1", | |||
"broccoli-babel-transpiler": "~5.6.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.
It is slightly odd to leave this at 5.x, but it seems totally fine to update in a follow-up...
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.
Fixed now.
app/services/ember-cli.js
Outdated
depScriptTags += ` | ||
<script type="text/javascript"> | ||
Object.keys(requirejs.entries).forEach(function (moduleName) { | ||
require(moduleName).__esModule = true; |
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.
Hmm, I don't think you should need to do this...
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.
Added comment explaining
app/services/ember-cli.js
Outdated
plugins: [ | ||
['transform-es2015-modules-amd', { | ||
loose: true, | ||
noInterop: false |
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.
If you set this to true
, I do not think that you will need the __esModule = true
flag above (because Babel will not check if it has to interop).
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.
Needed for compat with addons compiled with babel@5 using modules: 'amdStrict' Added comment explaining.
👏 👏 👏 👏 |
For issue #593