From 62a0f15ba162d2023134736d8a70e39383431a61 Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Tue, 23 Jan 2024 16:32:30 +0000 Subject: [PATCH] fix: react dist not working --- examples/sample-react-app/vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) 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/'