We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacbebd commit 68ada5aCopy full SHA for 68ada5a
rollup.config.js
@@ -4,6 +4,7 @@ import flow from 'rollup-plugin-flow'
4
import commonjs from 'rollup-plugin-commonjs'
5
import uglify from 'rollup-plugin-uglify'
6
import replace from 'rollup-plugin-replace'
7
+import pkg from './package.json'
8
9
const minify = process.env.MINIFY
10
const format = process.env.FORMAT
@@ -41,7 +42,9 @@ export default {
41
42
},
43
output
44
),
- external: [],
45
+ external: umd
46
+ ? []
47
+ : Object.keys(pkg.peerDependencies || {}),
48
plugins: [
49
resolve({ jsnext: true, main: true }),
50
flow(),
0 commit comments