Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxdavidson/rollup-plugin-sourcemaps
Rollup plugin for loading files with existing source maps
https://github.com/maxdavidson/rollup-plugin-sourcemaps
Last synced: 25 days ago
JSON representation
Rollup plugin for loading files with existing source maps
- Host: GitHub
- URL: https://github.com/maxdavidson/rollup-plugin-sourcemaps
- Owner: maxdavidson
- License: mit
- Created: 2016-06-18T22:55:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T13:03:09.000Z (7 months ago)
- Last Synced: 2024-07-19T20:16:41.692Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 90.8 KB
- Stars: 66
- Watchers: 4
- Forks: 17
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - sourcemaps
README
# rollup-plugin-sourcemaps
[![npm](https://img.shields.io/npm/v/rollup-plugin-sourcemaps.svg)](https://www.npmjs.com/package/rollup-plugin-sourcemaps)
[![Build Status](https://img.shields.io/travis/maxdavidson/rollup-plugin-sourcemaps/master.svg)](https://travis-ci.org/maxdavidson/rollup-plugin-sourcemaps)
[![Coverage Status](https://img.shields.io/coveralls/maxdavidson/rollup-plugin-sourcemaps/master.svg)](https://coveralls.io/github/maxdavidson/rollup-plugin-sourcemaps?branch=master)[Rollup](https://rollupjs.org) plugin for loading files with existing source maps.
Inspired by [webpack/source-map-loader](https://github.com/webpack/source-map-loader).Works with rollup 0.31.2 or later.
If you use [rollup-plugin-babel](https://github.com/rollup/rollup-plugin-babel),
you might be able to use the [`inputSourceMap`](https://babeljs.io/docs/en/options#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
```javascript
import sourcemaps from 'rollup-plugin-sourcemaps';export default {
input: 'src/index.js',
plugins: [sourcemaps()],
output: {
sourcemap: true,
file: 'dist/my-awesome-package.js',
},
};
```