Socket
Socket
Sign inDemoInstall

rollup-plugin-sourcemaps

Package Overview
Dependencies
11
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-sourcemaps

Rollup plugin for grabbing source maps from sourceMappingURLs


Version published
Maintainers
1
Weekly downloads
340,439
increased by4.89%
Install size
253 kB

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 07 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc