Skip to content

Rollup plugin for loading files with existing source maps

License

Notifications You must be signed in to change notification settings

maxdavidson/rollup-plugin-sourcemaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 7, 2020
f3964bc · Oct 7, 2020
May 31, 2020
Jan 3, 2020
May 31, 2020
Jan 3, 2020
Jan 3, 2020
Apr 30, 2020
Apr 30, 2020
Oct 7, 2020
Jan 3, 2020
Apr 30, 2020
May 31, 2020
Oct 7, 2020
Oct 7, 2020
May 31, 2020

Repository files navigation

rollup-plugin-sourcemaps

npm Build Status Coverage 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

import sourcemaps from 'rollup-plugin-sourcemaps';

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