Fix up external dependency bundling
This commit is contained in:
parent
4fef4356a4
commit
f3dff59d35
|
@ -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",
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue