Rollup plugin for grabbing source maps from sourceMappingURLs.
Useful for working with precompiled modules with existing source maps, without resorting to sorcery.
Requires Rollup v0.31.2 or later.
Inspired by webpack/source-map-loader.
import sourcemaps from 'rollup-plugin-sourcemaps';
export default {
entry: 'src/index.js',
dest: 'dist/my-awesome-package.js',
sourceMap: true,
plugins: [
sourcemaps()
]
};