gaearon / react-hot-boilerplate

Minimal live-editing example for React
MIT License
3.91k stars 879 forks source link

sourcemap issue #108

Closed hronro closed 7 years ago

hronro commented 7 years ago

When using devtool: 'cheap-module-source-map', I can't set break point in chrome devtools. Also it get wrong line numbers when I use console.log.

Use devtool: 'source-map' will fix it.

calesce commented 7 years ago

I agree it's a problem, unfortunately there's a tradeoff for each type of devtool. The documentation sums up the tradeoffs.

inline-source-map, which includes full source maps in the same bundle file, will be the default when we merge #111. It is slower, but much more usable and probably better for this boilerplate.