react-boilerplate icon indicating copy to clipboard operation
react-boilerplate copied to clipboard

Richard what's your recommended devtool to get line mappings on the server?

Open faceyspacey opened this issue 7 years ago • 2 comments

I used to have this working for me, but no matter which devtool option I try, none are correctly mapping lines currently.

You'd hope 'cheap-module-eval-source-map' was the answer. But all options except eval generate line numbers corresponding to a line in the entire main.js file (for example).

eval at least gets the file correct.

I'm using the latest version of Webpack.

faceyspacey avatar Jun 18 '17 11:06 faceyspacey

@faceyspacey I've used 'source-map' in the webpack-hot-server-middleware example and 'eval' in this boilerplate, both are working for me.

Not tried with the latest Webpack however, is this still an issue for you?

richardscarrott avatar Jun 20 '17 19:06 richardscarrott

Also, 'inline-cheap-module-source-map' should work -- https://github.com/60frames/webpack-hot-server-middleware/pull/15

richardscarrott avatar Jun 20 '17 19:06 richardscarrott