Files
react-native-devtools-frontend/node_modules/rollup-plugin-sourcemaps2
Nikolay Vitkov 95ea045b3e Update mocha to v11
Bug: none
Change-Id: I48e5e8df59c369ef8bea00bdaa7417f65f24b783
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6494701
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2025-05-01 23:10:37 -07:00
..
2025-05-01 23:10:37 -07:00
2025-05-01 23:10:37 -07:00

rollup-plugin-sourcemaps2

Version License Build Status

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

Works with rollup 4.x.x or later.

This is building on top of the awesome work of Max Davidson. The repo wasn't getting updates so I took it upon myself to keep a copy updated

If you use rollup-plugin-babel, you might be able to use the inputSourceMap option instead of this plugin. Conversely, if you use this plugin alongside rollup-plugin-babel, you should explicitly set the Babel inputSourceMap option to false.

If this plugin is not resolving the sourcemap URL (particularly on MS Windows), try also including the official rollup plugin @rollup/plugin-url.

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-sourcemaps2';

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