Skip to content

Commit

Permalink
I was getting "Uncaught ReferenceError: require is not defined" apply…
Browse files Browse the repository at this point in the history
…ing this to vite.config seems to fix it (#360)
  • Loading branch information
Zir0h authored Nov 24, 2023
1 parent 91cd15d commit 1a4c9cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export default defineConfig(({ mode }) => {
port: 3000,
},
build: {
commonjsOptions: {
transformMixedEsModules: true
},
outDir: 'build',
sourcemap: !prod,
rollupOptions: {
Expand Down

0 comments on commit 1a4c9cb

Please sign in to comment.