diff --git a/web3.js/package.json b/web3.js/package.json index ccaf07737a..7e9cecd8f2 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -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", diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index b6c8ea838d..95d201c540 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -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 = [