Update README.md

This commit is contained in:
Georges KABBOUCHI 2022-10-17 15:01:11 +03:00 committed by GitHub
parent 2daca3af95
commit acc6b9ac55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,12 +75,26 @@ yarn add @instadapp/vue-web3-nuxt -D
```
```ts
// nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@instadapp/vue-web3-nuxt'
],
web3 :{
autoImport: false, // default `true`
}
})
```
If you disabled `@instadapp/vue-web3-nuxt` auto import:
```ts
//composables/useWeb3.ts
import Web3 from "web3";
import { useWeb3 as useWeb3Generic } from "@instadapp/vue-web3";
const useWeb3 = () => useWeb3Generic<Web3>();
export { useWeb3 };
```
<br />
---