@barusu/webpack-source-map-loader
v0.3.1
Published
Webpack plugin for loading source map
Readme
Install
npm
npm install --save-dev @barusu/webpack-source-map-loaderyarn
yarn add --dev @barusu/webpack-source-map-loader
Usage
Used in webpack:
module.exports = { module: { rules: [ { test: /\.js$/, use: ['@barusu/webpack-source-map-loader'], enforce: "pre" } ] } };
Why
It seems that source-map-loader is no longer maintained, but there still some problems when you are using lerna to structure your project:
- Relative path used by sourcemap in package in monorepo cannot be parsed correctly in other packages
