Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecarpini committed Mar 21, 2024
1 parent 518d575 commit d3a98c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/sample-react-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { resolve } from 'path';

export default defineConfig({
plugins: [nodePolyfills(), react()],
build: {
commonjsOptions: {
transformMixedEsModules: true,
},
},
preview: {
port: 5001,
strictPort: true,
Expand Down

0 comments on commit d3a98c8

Please sign in to comment.