Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
Update Rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jan 14, 2018
1 parent 2487fed commit 31aac84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -40,7 +40,7 @@
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"remap-istanbul": "^0.9.5",
"rollup": "^0.41.6",
"rollup": "^0.54.0",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-node-resolve": "^3.0.0"
},
Expand Down
18 changes: 11 additions & 7 deletions rollup.config.js
Expand Up @@ -4,15 +4,19 @@ import resolve from 'rollup-plugin-node-resolve';
const pkg = require( './package.json' );

export default {
entry: 'src/sourcemap-codec.js',
input: 'src/sourcemap-codec.js',
plugins: [
buble({ exclude: 'node_modules/**' }),
resolve({ jsnext: true })
],
moduleName: 'sourcemapCodec',
sourceMap: true,
targets: [
{ dest: pkg.main, format: 'umd' },
{ dest: pkg.module, format: 'es' }
]
output: [{
file: pkg.main,
format: 'umd',
name: 'sourcemapCodec',
sourcemap: true
}, {
file: pkg.module,
format: 'es',
sourcemap: true
}]
};

0 comments on commit 31aac84

Please sign in to comment.