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

Open
bebraw opened this Issue Feb 2, 2017 · 0 comments

Projects

None yet

1 participant

@bebraw
Member
bebraw commented Feb 2, 2017

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

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 https://github.com/survivejs-demos/webpack-demo
  2. Check out source-map-bug
  3. npm i
  4. npm run build
  5. Examine build/app.js.map, 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