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 missing for non-entry chunks after rebuild #4086
Comments
The output from the rebuild is something like:
Note that chunk 1 is being generated for both the old and new hashes ( |
I have a fix, but no time to write tests for this currently. |
Using |
I'd be interested to hear if you have better suggestions. The thinking behind putting [hash] there went as follows:
|
tbh we worked around this by using a hardcoded string instead of [hash] when running the dev server - but obviously it's preferable to minimise differences between production and dev, and this took me somewhat by surprise. |
|
Anyway, you should be able to do it the |
Do you want to request a feature or report a bug?
Looks like a bug.
What is the current behavior?
Using
webpack-dev-server
, on a rebuild, non-entry chunks are regenerated with a new compliation hash in the filename, but the sourcemaps are not regenerated.If the current behavior is a bug, please provide the steps to reproduce.
[hash]
inoutput.chunkFilename
devtool: 'source'
webpack-dev-server
See https://github.com/richvdh/webpack-bug-demo for a minimal repo demonstrating this problem.
What is the expected behavior?
Webpack should serve the sourcemap for the secondary chunk with the new filename.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Webpack 1.14.0; webpack-dev-server 1.16.2; node 5.0.0; Linux.
The text was updated successfully, but these errors were encountered: