I have a published library, transpiled from babel-code with precompiled sourcemaps:
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 parse this maps, when i use this lib in my projet? Currently webpack builds sourcemap only for main project and not loads existing from node_modules.
See https://github.com/webpack/source-map-loader
It's better to use GitHub Issues for issues with webpack only. Questions should be addressed to StackOverflow Webpack instead.
Thanks, i ask question on stackoverflow: https://stackoverflow.com/questions/31874944/how-to-load-precompiled-sourcemaps-from-node-modules
If you are trying this for react-app and you are using create-react-app
please refer this link.
Most helpful comment
Thanks, i ask question on stackoverflow: https://stackoverflow.com/questions/31874944/how-to-load-precompiled-sourcemaps-from-node-modules