{"library":"rollup-plugin-sourcemaps","title":"rollup-plugin-sourcemaps","description":"Rollup plugin that loads existing source maps from sourceMappingURL comments in JavaScript files. Version 0.6.3 is the latest stable, with infrequent releases. It works with Rollup >=0.31.2 and helps preserve source maps from transpiled files or external modules before final bundling. Unlike Babel's inputSourceMap option, this plugin works with any source map source, making it useful when consuming pre-compiled dependencies or when using multiple transpilation steps.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-sourcemaps"],"cli":null},"imports":["import sourcemaps from 'rollup-plugin-sourcemaps'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import sourcemaps from 'rollup-plugin-sourcemaps';\nimport { rollup } from 'rollup';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n  plugins: [sourcemaps()],\n  output: {\n    sourcemap: true,\n    file: 'dist/bundle.js',\n    format: 'esm'\n  }\n});\n\nawait bundle.write({\n  sourcemap: true,\n  file: 'dist/bundle.js',\n  format: 'esm'\n});","lang":"javascript","description":"Sets up Rollup with the sourcemaps plugin to include existing source maps in the final bundle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}