-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
webpack passing string rather than a map to babel-loader #390
Comments
I have exactly the same bug! One workaround I have found is to rename the file from .js to .jsx. |
If |
Hi! after looking at webpack's documentation, it turns out a JSON parseable string is a valid sourcemap. I raised a PR in to handle this case #889. |
Webpack Version:
2.x
Babel Core Version:
6.x
Babel Loader Version:
6.2.x
Please tell us about your environment:
OSX 10.x
What bug I have found is that I cannot not use devtool: sourcemap. It returns exception below
Finally, I found that webpack calling babel-loader function
module.exports = function (source, inputSourceMap)
and passing inputSourceMap as a string rather than map. It makes babel not to response correctly.So, Do I make any incorrect config so that it pass a string rather than map to babel-loader?
Or should it be fixed on babel-loader?
The text was updated successfully, but these errors were encountered: