cheap-module-source-map doesn't generate sourcesContent #4176

bebraw opened this Issue Feb 2, 2017 · 0 comments


None yet

1 participant

bebraw commented Feb 2, 2017

Do you want to request a feature or report a bug?


What is the current behavior?

No sourcesContent is generated in the source map if UglifyJsPlugin({ sourceMap: true }) is enabled and devtool: 'cheap-module-source-map' is used. cheap-source-map works.

If the current behavior is a bug, please provide the steps to reproduce.

  1. Clone
  2. Check out source-map-bug
  3. npm i
  4. npm run build
  5. Examine build/, note above.
  6. Tweak webpack.config.js (contains comments how).

What is the expected behavior?

It should generate sourcesContent like cheap-source-map option.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Webpack ^2.2.0. Node 6, macOS.

@bhollis bhollis referenced this issue in DestinyItemManager/DIM Feb 22, 2017
@bhollis bhollis Attempt to improve source map 07928ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment