Skip to content
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

Use default targets configuration for transpilation tests. #284

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jun 12, 2019

In @babel/[email protected] 3 new plugins are added when supporting < IE 11:

  • transform-member-expression-literals
  • transform-property-literals
  • transform-reserved-words

Unfortunately, babel-plugin-ember-modules-api-polyfill does a "bad thing" and updates the imported identifiers value to be a string like Ember.Foo which is completely invalid. The new transforms added in @babel/[email protected] (correctly) try to fix invalid identifiers for IE9/IE10 and end up making the output completely incorrect.

This commit adds targets to prevent these plugins from being used in our own test harness, but we should absolutely fix the underlying issue upstream in babel-plugin-ember-modules-api-polyfill.

Fixes #281
Closes #282

In @babel/[email protected] 3 new plugins are added when supporting < IE
11:

* transform-member-expression-literals
* transform-property-literals
* transform-reserved-words

Unfortunately, babel-plugin-ember-modules-api-polyfill does a "bad
thing" and updates the imported identifiers value to **be** a string
like `Ember.Foo` which is completely invalid. The new transforms added
in @babel/[email protected] (correctly) try to fix invalid identifiers
for IE9/IE10 and end up making the output completely incorrect.

This commit adds targets to prevent these plugins from being used in our
own test harness, but we should **absolutely** fix the underlying issue
upstream in babel-plugin-ember-modules-api-polyfill.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing Build
2 participants