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

0.6.4 • Public • Published

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',
  },
};

Package Sidebar

Install

npm i @edugis/rollup-plugin-sourcemaps

Weekly Downloads

2

Version

0.6.4

License

MIT

Unpacked Size

16.8 kB

Total Files

9

Last publish

Collaborators

  • edugis