12 ms·
Your WebPack.config.js appears to be missing this: devtool: 'inline-source-map' No sourcemaps, no debugging original source. Hope that helps
by johnny_reilly 10y ago
Your WebPack.config.js appears to be missing this:
devtool: 'inline-source-map'
No sourcemaps, no debugging original source. Hope that helps
- seniorsassycat 10y agolib-main-dev.js is an example of the output when running 'webpack -d', which is short for '--devtool sourcemap --debug --output-pathinfo', it has the same problem* There are really two problems contributing to this. First, webpack rewrites import/export statments and never introduces a variable binding with the same name as the bindings used in the original import/export. Second sourcemaps _do_ map lines of compiled code to lines of original source, but they _do not_ map renamed variables to original names. As an example, enable minifiaction and soucemaps then try to debug a function. You might notice that the variables are all called a, b, c, and other short uglified strings now. * I just realized that the file I uploaded is missing the ends of each line, so that file is incorrect.