Package Exports
- rollup-plugin-sourcemaps
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-sourcemaps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-sourcemaps
Rollup plugin for loading files with existing source maps. Inspired by webpack/source-map-loader.
Works with rollup 0.31.2 or later.
If you use rollup-plugin-babel,
you might be able to use the inputSourceMap
option instead of this plugin.
Why?
- You transpile your files with source maps before bundling with rollup
- You consume external modules with bundled source maps
Usage
import sourcemaps from 'rollup-plugin-sourcemaps';
export default {
input: 'src/index.js',
plugins: [sourcemaps()],
output: {
sourcemap: true,
file: 'dist/my-awesome-package.js',
},
};