Skip to content

Commit 68ada5a

Browse files
Andaristerikras
authored andcommitted
Keep externals as deps (#14)
1 parent cacbebd commit 68ada5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import flow from 'rollup-plugin-flow'
44
import commonjs from 'rollup-plugin-commonjs'
55
import uglify from 'rollup-plugin-uglify'
66
import replace from 'rollup-plugin-replace'
7+
import pkg from './package.json'
78

89
const minify = process.env.MINIFY
910
const format = process.env.FORMAT
@@ -41,7 +42,9 @@ export default {
4142
},
4243
output
4344
),
44-
external: [],
45+
external: umd
46+
? []
47+
: Object.keys(pkg.peerDependencies || {}),
4548
plugins: [
4649
resolve({ jsnext: true, main: true }),
4750
flow(),

0 commit comments

Comments
 (0)