This repository has been archived by the owner on Jan 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Structured objects in the loader list #11
Comments
Looks like a good idea. Do you want to send a PR? |
I probably won't get around to this for awhile but it is a good PR for the community to contribute. |
I just issued a pull request earlier today that addresses this. |
Oh thanks, could you "move" this PR to the webpack repo, as
|
Or better wait, the loader stuff will change anyway with webpack 2, so maybe the |
Just to let you know, you can use Node querystring module to accomplish this: var queryObject = {presets: ['es2015', 'runtime'], otherQueryParam: 'foobar'};
var query = require('querystring').stringify(queryObject);
config.loaders = [{
test: /\.js$/,
loaders: ['ng-annotate', 'babel?' + query]
}]; |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently to specify a loader you can write:
but this does not support multiple loaders. For that, only the string syntax is supported:
react-hot!babel?stage=0&optional[]=runtime
. I would like to be able to use the object literal syntax to specify multiple loaders with query parameters:The text was updated successfully, but these errors were encountered: