Skip to content

Commit

Permalink
fix: rollup and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vambolapert committed Mar 13, 2023
1 parent 1f8f691 commit 09bd502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})],
},
Expand Down

0 comments on commit 09bd502

Please sign in to comment.