Skip to content

Commit

Permalink
Testing workaround using strictRequires
Browse files Browse the repository at this point in the history
vitejs/vite#13672 (comment)

Still fails producing a deterministic build:
npm run build
mv build build1
npm run build
diff -qr build build1
  • Loading branch information
derheld42 committed Oct 29, 2023
1 parent 3a33986 commit a31754f
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,ts}']
},
build: {
rollupOptions: {
// Trying potential workaround for
// https://github.com/vitejs/vite/issues/10506
//
// Still fails with:
// npm run build
// mv build build1
// npm run build
// diff -qr build build1
maxParallelFileOps: 1
//rollupOptions: {
// Trying potential workaround for
// https://github.com/vitejs/vite/issues/10506
//
// Still fails with:
// npm run build
// mv build build1
// npm run build
// diff -qr build build1
//
//maxParallelFileOps: 1
//}
// Trying workaround from
// https://github.com/vitejs/vite/issues/13672#issuecomment-1784110536
//
// Still fails using test
commonjsOptions: {
strictRequires: true
}
}
});

0 comments on commit a31754f

Please sign in to comment.