chore: update instructions for web3.js (#17422)
* Update instructions for web3.js Removed broken link, updated instructions to get latest version for browser bundle. 2 pedantic changes. * chore: update module.flow.js link Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
@ -41,10 +41,10 @@ $ npm install --save @solana/web3.js
|
|||||||
### Browser bundle
|
### Browser bundle
|
||||||
```html
|
```html
|
||||||
<!-- Development (un-minified) -->
|
<!-- Development (un-minified) -->
|
||||||
<script src="https://unpkg.com/@solana/web3.js@0.92.0/lib/index.iife.js"></script>
|
<script src="https://unpkg.com/@solana/web3.js@latest/lib/index.iife.js"></script>
|
||||||
|
|
||||||
<!-- Production (un-minified) -->
|
<!-- Production (un-minified) -->
|
||||||
<script src="https://unpkg.com/@solana/web3.js@0.92.0/lib/index.iife.min.js"></script>
|
<script src="https://unpkg.com/@solana/web3.js@latest/lib/index.iife.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development Environment Setup
|
## Development Environment Setup
|
||||||
@ -82,8 +82,8 @@ console.log(solanaWeb3);
|
|||||||
## Flow
|
## Flow
|
||||||
|
|
||||||
A [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
|
A [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
|
||||||
[module.flow.js](https://github.com/solana-labs/solana-web3.js/tree/master/module.flow.js).
|
https://unpkg.com/@solana/web3.js@latest/module.flow.js.
|
||||||
Add the following line under the [libs] section of your project's .flowconfig to
|
Download the file and add the following line under the [libs] section of your project's `.flowconfig` to
|
||||||
activate it:
|
activate it:
|
||||||
```ini
|
```ini
|
||||||
[libs]
|
[libs]
|
||||||
@ -96,4 +96,4 @@ and [npmjs.com](https://www.npmjs.com/package/@solana/web3.js)
|
|||||||
|
|
||||||
Each Github release features a tarball containing API documentation and a
|
Each Github release features a tarball containing API documentation and a
|
||||||
minified version of the module suitable for direct use in a browser environment
|
minified version of the module suitable for direct use in a browser environment
|
||||||
(<script> tag)
|
(`<script>` tag)
|
||||||
|
Reference in New Issue
Block a user