mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
Update module.ts
This commit is contained in:
parent
58b650a2e3
commit
4c92b73950
|
@ -1,4 +1,9 @@
|
||||||
import { addAutoImport, defineNuxtModule, extendViteConfig } from '@nuxt/kit'
|
import {
|
||||||
|
addAutoImport,
|
||||||
|
addImportsDir,
|
||||||
|
defineNuxtModule,
|
||||||
|
extendViteConfig,
|
||||||
|
} from '@nuxt/kit'
|
||||||
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
|
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
|
||||||
import rollupNodePolyFill from 'rollup-plugin-node-polyfills'
|
import rollupNodePolyFill from 'rollup-plugin-node-polyfills'
|
||||||
|
|
||||||
|
@ -49,7 +54,7 @@ export default defineNuxtModule<ModuleOptions>({
|
||||||
})
|
})
|
||||||
|
|
||||||
if (options.autoImport) {
|
if (options.autoImport) {
|
||||||
addI({
|
addAutoImport({
|
||||||
name: 'useWeb3',
|
name: 'useWeb3',
|
||||||
from: '@instadapp/vue-web3',
|
from: '@instadapp/vue-web3',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user