diff --git a/README.md b/README.md index 8e6d93ca..45f0c9fd 100644 --- a/README.md +++ b/README.md @@ -65,22 +65,22 @@ Install the latest BBAChain release from https://docs.bbachain.com/cli/install-c ### Javascript ```js -const web3 = require('@bbachain/web3.js'); -console.log(web3); +const bbaWeb3 = require('@bbachain/web3.js'); +console.log(bbaWeb3); ``` ### ES6 ```js -import * as web3 from '@bbachain/web3.js'; -console.log(web3); +import * as bbaWeb3 from '@bbachain/web3.js'; +console.log(bbaWeb3); ``` ### Browser bundle ```js -// `web3` is provided in the global namespace by the `web3.min.js` script bundle. -console.log(web3); +// `bbaWeb3` is provided in the global namespace by the `bbaWeb3.min.js` script bundle. +console.log(bbaWeb3); ``` ## Compatibility diff --git a/rollup.config.js b/rollup.config.js index 374bddd8..943073f8 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -129,13 +129,13 @@ function generateConfig(configType, format) { { file: 'lib/index.iife.js', format: 'iife', - name: 'solanaWeb3', + name: 'bbaWeb3', sourcemap: true, }, { file: 'lib/index.iife.min.js', format: 'iife', - name: 'solanaWeb3', + name: 'bbaWeb3', sourcemap: true, plugins: [terser({mangle: false, compress: false})], },