rollup-plugin-sourcemaps

esm cjs
Rollup plugin for grabbing source maps from sourceMappingURLs
Version 0.6.3 License MIT
Keywords
rolluprollup-pluginsourcemapsource-mapsourceMappingURL
INSTALL
Type:
<script type="module"> import rollupPluginSourcemaps from 'https://cdn.jsdelivr.net/npm/rollup-plugin-sourcemaps@0.6.3/+esm' </script>
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',
},
};