File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments