How to load precompiled source codes from node_modules

I have a library passed from babel with precompiled source maps:

node_modules/mylib: index.js index.js.map mapTokens.js mapTokens.js.map plainObject.js plainObject.js.map Translator.js Translator.js.map 

How to teach webpack to analyze these maps when I use this library in my project? Currently webpack creates the source map only for the main project, and not for libs in node_modules.

+5
source share
1 answer

I was looking for the same thing, and I managed to get it to work in my project. See my answer to my question.

How to download library source files using webpack

+2
source

All Articles