Socket
Socket
Sign inDemoInstall

rollup-plugin-sourcemaps

Package Overview
Dependencies
30
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
Install size
291 kB
Created

Changelog

Source

0.5.0

  • Drop support for Node < 8 and make use of ES2017 features
  • Switch from Babel to TypeScript
  • Remove jsnext:main field from package.json

Readme

Source

rollup-plugin-sourcemaps

npm Build Status Coverage Status Greenkeeper badge

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 03 Jan 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