1. rollup-plugin-sourcemaps
Rollup plugin for grabbing source maps from sourceMappingURLs
rollup-plugin-sourcemaps
Package: rollup-plugin-sourcemaps
Created by: maxdavidson
Last modified: Sun, 26 Jun 2022 14:01:47 GMT
Version: 0.6.3
License: MIT
Downloads: 1,427,316
Repository: https://github.com/maxdavidson/rollup-plugin-sourcemaps

Install

npm install rollup-plugin-sourcemaps
yarn add rollup-plugin-sourcemaps

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin