standard-things / esm

Tomorrow's ECMAScript modules today!
Other
5.26k stars 146 forks source link

Wrong sourcemap url for files in node_modules with electron #870

Closed toddwong closed 3 years ago

toddwong commented 4 years ago

Reproducing

git clone git@github.com:toddwong/electron-quick-start.git
cd electron-quick-start
npm install
npm start

In the devtools console, there will be a lot of

DevTools failed to parse SourceMap: file:///X:/path/to/electron-quick-start/xxx/xxx.js.map

But the url of these sourcemap files should be: file:///X:/path/to/electron-quick-start/node_modules/ol/xxx/xxx.js.map