Skip to content

Commit

Permalink
Comment on Vite workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Feb 21, 2024
1 parent afcb244 commit 931e643
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapp/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ export default defineConfig({
build: {
commonjsOptions: {
// https://github.com/vitejs/vite/issues/13672#issuecomment-1784110536
// It *seems* that this workaround makes a difference. I'm
// *guessing* this is related to CodeMirror5 being CommonJS and
// possibly having some crazy recursive includes.
strictRequires: true
},
rollupOptions: {
// https://github.com/vitejs/vite/issues/10506#issuecomment-1367718113
// TODO: It's possible that this workaround makes no difference
maxParallelFileOps: 1,
plugins: [
// externalGlobals() would be nice, but doesn't seem to work
Expand Down

0 comments on commit 931e643

Please sign in to comment.