-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
Add support for [email protected]'s new config interface #282
Comments
That config format isn't quite right. You want
so the options are grouped together with the preset they go with. |
@loganfsmyth Wonderful, thanks very much! |
@loganfsmyth @kohlmannj Even with the grouped format, it is not working for me.
|
my bad, the correct setup is this according to babel release notes (and it works)
|
i've had the same problem and using babel ng annonate plugin solved it! |
How would that work with having
Error:
Edit: the issue was unrelated to my config. |
I'm submitting a feature request
Webpack Version: 2.1.0-beta.19
Babel Core Version: 6.13.2
Babel Loader Version: 6.2.4
Please tell us about your environment:
OSX 10.11.6
Node v6.2.2
NPM v3.10.5
Babel's recent release of v6.13.2 and corresponding 6.13.2 update to
babel-preset-es2015
has resulted in the depreciation ofbabel-preset-es2015-webpack
.Along with with update, the Babel team has (apparently?) changed the interface for
babel-preset-es2015
. The Babel configuration referenced at this link shows how a developer can include an object literal within thepresets
array to indicate whether or not thees2015
preset should useloose
native modules and/or transformation of ES6modules
, rather than installing and using a separate preset.I'm not aware of any way to pass this new form of object literal to the preset module within
babel-loader
's current interface.babel-loader
perhaps needs an update to mirror the changes made in Babel 6.13.x, namely to support passing options to thees2015
preset within the loader configuration. Here's a possible way this could work using aquery
hash:The above loader config doesn't work with
[email protected]
,[email protected]
, or[email protected]
.The above loader configuration currently produces the following error when used with
[email protected]
:If there is an existing way to pass these new config values to the
es2015
preset, that'd obviously be great!Expected behavior: by creating some valid loader configuration,
babel-preset-es2015
correctly honors themodules
andloose
flags passed to it when Webpack invokes Babel viababel-loader
.The new object literal configuration interface for
[email protected]
, and subsequent deprecationbabel-preset-es2015-webpack
is the primary motivation. (I'd guess thatbabel-preset-es2015-loose-native-modules
will be deprecated soon as well.)Thanks, Joe
The text was updated successfully, but these errors were encountered: