Skip to content

Commit

Permalink
fix(rollup): use rollup-plugin-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Aug 8, 2018
1 parent c7180f5 commit fb7d36d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import cleanup from 'rollup-plugin-cleanup';
import executable from 'rollup-plugin-executable';
import pkg from './package.json';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import executable from 'rollup-plugin-executable';
import cleanup from 'rollup-plugin-cleanup';
import pkg from './package.json';

export default {
output: {
file: pkg.main,
format: 'cjs',
interop: false
},
plugins: [resolve(), commonjs()],
plugins: [resolve(), commonjs(), cleanup()],
external: [
'os',
'util',
Expand Down
5 changes: 2 additions & 3 deletions tests/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import istanbul from 'rollup-plugin-istanbul';
import multiEntry from 'rollup-plugin-multi-entry';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import istanbul from 'rollup-plugin-istanbul';

export default {
input: 'tests/**/*-test.js',
Expand All @@ -21,10 +21,9 @@ export default {
resolve(),
commonjs(),
istanbul({
exclude: ['tests/**/*-test.js']
exclude: ['tests/**/*-test.js', 'node_modules/**/*']
})
],

output: {
file: 'build/bundle-test.js',
format: 'cjs',
Expand Down

0 comments on commit fb7d36d

Please sign in to comment.