-
Notifications
You must be signed in to change notification settings - Fork 125
Trying to use Happypack with multiple loaders #38
Comments
You need to use an array if you're using {
test: /\.js$/,
loaders: [ 'happypack/loader?id=js' ],
exclude: /node_modules/
}, |
Interesting, I had the same problem and found the solution here. In your README.md you specify a single |
So, webpack 1.x accepts loaders in two forms and two variants: // form 1: a single loader with an "object" query:
{
loader: 'my-single-loader',
query: { "foo": "bar" } // this is optional
}
// form 1, variant 2: a single loader with inline query:
{
loader: 'my-single-loader?foo=bar',
query: {} // this is optional
}
// form 2: multiple loaders, inline queries:
{
loaders: [ 'a', 'b?foo=bar' ]
} HappyPack only accepts I should probably do that last bit to relieve some of this confusion. |
The README was amended to now only use |
Hello. I'm trying to use Happypack with the following loaders:
And I'm calling happypack like so:
Unfortunately I'm getting the following error
TypeError: r.forEach is not a function
:The text was updated successfully, but these errors were encountered: