Skip to content

Commit 912efe3

Browse files
committed
Fix up external dependency bundling
1 parent d3f143f commit 912efe3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"main": "lib/index.cjs.js",
2323
"module": "lib/index.esm.js",
24-
"browser": "lib/index.iife.js",
2524
"scripts": {
2625
"clean": "rimraf ./coverage ./lib",
2726
"dev": "cross-env NODE_ENV=development rollup -c",

rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ function generateConfig(configType) {
1313
const config = {
1414
input: 'src/index.js',
1515
plugins: [
16-
nodeResolve(),
1716
json(),
1817
babel({
1918
exclude: '**/node_modules/**',
@@ -50,6 +49,9 @@ function generateConfig(configType) {
5049
];
5150
config.plugins.push(builtins());
5251
config.plugins.push(globals());
52+
config.plugins.push(nodeResolve({
53+
browser: true,
54+
}));
5355
break;
5456
case 'node':
5557
config.output = [

0 commit comments

Comments
 (0)