rollup-plugin-include-sourcemaps
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

rollup-plugin-include-sourcemaps

Rollup plugin for loading files with existing source maps. Inspired by webpack/source-map-loader.

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-include-sourcemaps';

export default {
  input: 'src/index.js',
  plugins: [sourcemaps()],
  output: {
    sourcemap: true,
    file: 'dist/my-awesome-package.js',
  },
};

Package Sidebar

Install

npm i rollup-plugin-include-sourcemaps

Weekly Downloads

52

Version

0.7.0

License

MIT

Unpacked Size

32.5 kB

Total Files

9

Last publish

Collaborators

  • iiimaddiniii