Skip to content

AxyLm/web3modal-vue

Repository files navigation

web3modal-vue

A dapp demo use walletconnect for vue

web3modal-vue.netlify.app

Start

development

Just run and visit http://localhost:5173/

pnpm dev

build

pnpm build
// !!! vite.config.ts

import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
...
export default defineConfig(({ command }) => {
  if (command === 'serve') {
    userConfig.define = {
      process: process,
    };
    userConfig.resolve = {
      ...userConfig.resolve,
      alias: {
        ...userConfig.resolve?.alias,
        util: 'rollup-plugin-node-polyfills/polyfills/util',
        tty: 'rollup-plugin-node-polyfills/polyfills/tty',
      },
    };
  }
  return userConfig;
});

LICENSE

MIT license