From 4c92b739507cb66fb2bac752ae8830365d85f6d2 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Fri, 7 Oct 2022 20:19:20 +0300 Subject: [PATCH] Update module.ts --- nuxt/src/module.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nuxt/src/module.ts b/nuxt/src/module.ts index cd55962..cbe7a0d 100644 --- a/nuxt/src/module.ts +++ b/nuxt/src/module.ts @@ -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 rollupNodePolyFill from 'rollup-plugin-node-polyfills' @@ -49,7 +54,7 @@ export default defineNuxtModule({ }) if (options.autoImport) { - addI({ + addAutoImport({ name: 'useWeb3', from: '@instadapp/vue-web3', })