How to load precompiled sourcemaps from node_modules

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.

Author: Fantashit

2 thoughts on “How to load precompiled sourcemaps from node_modules

Comments are closed.