Skip to content

Repository files navigation

rollup-plugin-sourcemaps

npmBuild StatusCoverage Status

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

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

About

Rollup plugin for loading files with existing source maps

Resources

Stars

68 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages