rollup-plugin-sourcemaps

Rollup plugin for grabbing source maps from sourceMappingURLs

MIT 19 个版本
安装
npm install rollup-plugin-sourcemaps
yarn add rollup-plugin-sourcemaps
pnpm add rollup-plugin-sourcemaps
bun add rollup-plugin-sourcemaps
README

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',
  },
};
版本列表
0.6.3 2020-10-07
0.6.2 2020-05-08
0.6.1 2020-05-01
0.6.0 2020-04-30
0.5.0 2020-01-03
0.4.2 2017-04-09
0.4.1 2016-09-14
0.4.0 2016-09-12
0.3.7 2016-08-28
0.3.6 2016-08-09
0.3.5 2016-07-13
0.3.4 2016-06-25
0.3.3 2016-06-21
0.3.2 2016-06-20
0.3.1 2016-06-19
0.3.0 2016-06-19
0.2.0 2016-06-19
0.1.1 2016-06-19
0.1.0 2016-06-19