A dapp demo use walletconnect for vue
Just run and visit http://localhost:5173/
pnpm dev
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;
});