Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFix presets array bug #224
Conversation
This comment has been minimized.
This comment has been minimized.
unblocks ember-cli/ember-cli#7848 and fixes ember-cli/ember-cli#7850 |
This comment has been minimized.
This comment has been minimized.
/cc @stefanpenner and @kellyselden |
rwjblue
reviewed
May 26, 2018
index.js
Outdated
@@ -221,9 +221,13 @@ module.exports = { | |||
userPostTransformPlugins | |||
).filter(Boolean); | |||
|
|||
options.presets = [ | |||
shouldRunPresetEnv && this._getPresetEnvPlugins(addonProvidedConfig), | |||
] |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kellyselden
May 26, 2018
Member
I think I agree with @rwjblue, I think the consistency with the above .filter(Boolean)
would be better.
This comment has been minimized.
This comment has been minimized.
kellyselden
approved these changes
May 26, 2018
twokul
force-pushed the
twokul:fix
branch
from
af3c2ac
to
18c751d
May 26, 2018
This comment has been minimized.
This comment has been minimized.
@rwjblue @kellyselden comment addressed, I can't merge so w/e you're ready |
This comment has been minimized.
This comment has been minimized.
I’ll get it released in an hour or so... |
kellyselden
merged commit 194c847
into
babel:master
May 26, 2018
twokul
deleted the
twokul:fix
branch
May 26, 2018
This comment has been minimized.
This comment has been minimized.
Released in v6.14.1 |
Turbo87
added
the
bug
label
May 28, 2018
This comment has been minimized.
This comment has been minimized.
thanks for the test! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
twokul commentedMay 26, 2018
•
edited
In
ember-cli
when usingDELAYED_TRANSPILATION
feature, we explicitlyset
disablePresetEnv
flag totrue
.shouldRunPresetEnv
is anegation of
disablePresetEnv
.Prior to this change
options.presets
was an array with onefalse
item in it (
shouldRunPresetEnv
was set tofalse
) and would not let filesbe transplied when
DELAYED_TRANSPILATION
was enabled.Useful links: