| 1 |
Description: update rollup configuration to newer upstream support |
| 2 |
Author: Julien Puydt |
| 3 |
Forwarded: no |
| 4 |
|
| 5 |
--- a/rollup.config.js |
| 6 |
+++ b/rollup.config.js |
| 7 |
@@ -4,15 +4,13 @@ |
| 8 |
const pkg = require( './package.json' ); |
| 9 |
|
| 10 |
export default { |
| 11 |
- entry: 'src/index.js', |
| 12 |
+ input: 'src/index.js', |
| 13 |
plugins: [ |
| 14 |
nodeResolve(), |
| 15 |
buble({ exclude: 'node_modules/**' }) |
| 16 |
], |
| 17 |
- moduleName: 'tippex', |
| 18 |
- sourceMap: true, |
| 19 |
- targets: [ |
| 20 |
- { dest: pkg.main, format: 'umd' }, |
| 21 |
- { dest: pkg.module, format: 'es' } |
| 22 |
+ output: [ |
| 23 |
+ { name: 'tippex', sourcemap: true, file: pkg.main, format: 'umd' }, |
| 24 |
+ { name: 'tippex', sourcemap: true, file: pkg.module, format: 'es' } |
| 25 |
] |
| 26 |
}; |