mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
wip
This commit is contained in:
parent
7605997d3d
commit
ef8b9ddab3
|
@ -23,20 +23,20 @@
|
|||
"dependencies": {
|
||||
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
||||
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
|
||||
"@instadapp/vue-web3": "latest",
|
||||
"@nuxt/kit": "^3.0.0-rc.11",
|
||||
"@instadapp/vue-web3": "^0.9.7",
|
||||
"@nuxt/kit": "^3.0.0",
|
||||
"events": "^3.3.0",
|
||||
"mkdirp-promise": "4",
|
||||
"rollup-plugin-node-polyfills": "^0.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/module-builder": "latest",
|
||||
"@nuxt/module-builder": "^0.2.1",
|
||||
"@nuxt/ui": "^0.3.3",
|
||||
"@nuxtjs/eslint-config-typescript": "11.0.0",
|
||||
"@web3-react/injected-connector": "^6.0.7",
|
||||
"@web3-react/network-connector": "^6.2.9",
|
||||
"@web3-react/walletconnect-connector": "^6.2.13",
|
||||
"eslint": "8.24.0",
|
||||
"nuxt": "^3.0.0-rc.11"
|
||||
"nuxt": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
import {
|
||||
addAutoImport,
|
||||
addImportsDir,
|
||||
defineNuxtModule,
|
||||
extendViteConfig,
|
||||
} from '@nuxt/kit'
|
||||
import { addImports, defineNuxtModule, extendViteConfig } from '@nuxt/kit'
|
||||
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
|
||||
import rollupNodePolyFill from 'rollup-plugin-node-polyfills'
|
||||
|
||||
|
@ -20,15 +15,6 @@ export default defineNuxtModule<ModuleOptions>({
|
|||
autoImport: true,
|
||||
},
|
||||
setup(options, nuxt) {
|
||||
// nuxt.hook('vite:extendConfig', (clientConfig, { isClient }) => {
|
||||
// if (isClient && process.env.NODE_ENV === 'production') {
|
||||
// clientConfig.resolve.alias = {
|
||||
// ...clientConfig.resolve.alias,
|
||||
// web3: resolve('./node_modules/web3/dist/web3.min.js')
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
extendViteConfig((config) => {
|
||||
config.build = config.build || {}
|
||||
config.build.rollupOptions = config.build.rollupOptions || {}
|
||||
|
@ -54,7 +40,7 @@ export default defineNuxtModule<ModuleOptions>({
|
|||
})
|
||||
|
||||
if (options.autoImport) {
|
||||
addAutoImport({
|
||||
addImports({
|
||||
name: 'useWeb3',
|
||||
from: '@instadapp/vue-web3',
|
||||
})
|
||||
|
|
3633
nuxt/yarn.lock
3633
nuxt/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user