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
Source maps aren't added to .mjs output files #7927
Comments
Not sure this is even supported. |
Which source map options have you tried? |
|
In my example I show that I'm using the option And I agree with @mathiasbynens, Webpack claims in many places that it supports |
Send a PR fixing this RegExp: webpack/lib/SourceMapDevToolPlugin.js Line 87 in 6f1f18f
|
Filed #7947. |
Bug report
What is the current behavior?
Source maps don't get added when defining an output file with an
mjs
extension. If I change nothing about my config except for the output extension frommjs
tojs
, it works as expected.If the current behavior is a bug, please provide the steps to reproduce.
Here's a minimal repo:
webpack.config.js
:main.mjs
:Other relevant information:
webpack version: 4.17.0
Node.js version: 10.8
Operating System: MacOS 10.13.6
Additional tools: N/A
The text was updated successfully, but these errors were encountered: