Skip to content
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

SourceMapDevToolPlugin not outputting full sourcemap during Hot Module Replacement #2768

Closed
baseten opened this issue Jul 14, 2016 · 1 comment
Labels

Comments

@baseten
Copy link

baseten commented Jul 14, 2016

I'm submitting a bug report

Webpack version:
1.13.1

Please tell us about your environment:
OSX 10.11.3

Current behavior:
When using WebpackDevServer with HMR enabled and the SourceMapDevToolPlugin with the following options:

{
    test: /\.(js|jsx|css)($|\?)/i,
    filename: 'bundle.js.map',
    noSources: true,
    moduleFilenameTemplate: 'file://[absolute-resource-path]'
    fallbackModuleFilenameTemplate: 'file://[absolute-resource-path]?[hash]'
}

After changing a source file, the newly generated sourcemap only contains mappings for the file that changed and nothing else. I initially thought it may be related to this issue but even after doing a hard refresh the sourcemap remains the same. If using the devtool: 'sourcemap' option then everything works as expected.

Expected/desired behavior:
A new sourcemap should be generated for all source files.

@bebraw bebraw added the bug label Jul 15, 2016
@sokra
Copy link
Member

sokra commented Jul 17, 2016

remove the filename property.

@sokra sokra closed this as completed Jul 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants