diff --git a/examples/sample-react-app/vite.config.ts b/examples/sample-react-app/vite.config.ts index bcd3b212..5702ea65 100644 --- a/examples/sample-react-app/vite.config.ts +++ b/examples/sample-react-app/vite.config.ts @@ -4,6 +4,11 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills'; export default defineConfig({ plugins: [nodePolyfills(), react()], + build: { + commonjsOptions: { + transformMixedEsModules: true, + }, + }, base: process.env.NODE_ENV === 'production' ? '/vechain-dapp-kit/react/'