From d3a98c8e6a001a9486fba3587f1a2e69f551a29c Mon Sep 17 00:00:00 2001 From: Davide Carpini Date: Thu, 21 Mar 2024 17:55:10 +0100 Subject: [PATCH] fix: build --- 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 43af3b35..b35ec599 100644 --- a/examples/sample-react-app/vite.config.ts +++ b/examples/sample-react-app/vite.config.ts @@ -7,6 +7,11 @@ import { resolve } from 'path'; export default defineConfig({ plugins: [nodePolyfills(), react()], + build: { + commonjsOptions: { + transformMixedEsModules: true, + }, + }, preview: { port: 5001, strictPort: true,