webpack-contrib / transform-loader

transform loader for webpack
MIT License
110 stars 23 forks source link

Error if browserify transform queues too much #2

Closed zkat closed 10 years ago

zkat commented 10 years ago

I got this error when using es6ify with transform-loader:

Error: callback(): The callback was already called.
    at context.callback (/path/to/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:141:11)

When there was a syntax error. Specifically, this is where I traced the error to: https://github.com/thlorenz/es6ify/blob/master/index.js#L79-L93

And this line is the one that actually triggers the error: https://github.com/thlorenz/es6ify/blob/master/index.js#L88

It looks like transform-loader really dislikes getting extra data queued in (even if null) when an error has been emitted?