Update module.ts

This commit is contained in:
Georges KABBOUCHI 2022-10-07 20:19:20 +03:00
parent 58b650a2e3
commit 4c92b73950

View File

@ -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',
}) })