Skip to content

Commit

Permalink
fix: react dist not working
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jan 23, 2024
1 parent 251e8d5 commit 62a0f15
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 @@ -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/'
Expand Down

0 comments on commit 62a0f15

Please sign in to comment.