Fix up external dependency bundling

This commit is contained in:
Michael Vines 2018-08-23 19:50:37 -07:00
parent 4fef4356a4
commit f3dff59d35
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,6 @@
},
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"browser": "lib/index.iife.js",
"scripts": {
"clean": "rimraf ./coverage ./lib",
"dev": "cross-env NODE_ENV=development rollup -c",

View File

@ -13,7 +13,6 @@ function generateConfig(configType) {
const config = {
input: 'src/index.js',
plugins: [
nodeResolve(),
json(),
babel({
exclude: '**/node_modules/**',
@ -50,6 +49,9 @@ function generateConfig(configType) {
];
config.plugins.push(builtins());
config.plugins.push(globals());
config.plugins.push(nodeResolve({
browser: true,
}));
break;
case 'node':
config.output = [