Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Keep the dependency scan from failing on the browser denoiser page

Nguyen Xuan An5e4378b017fc
diff --git a/vite.config.js b/vite.config.js
index 50db8eef..1b856338 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,7 +8,12 @@ const headers = {
export default defineConfig({
server: { headers, watch: { ignored: ['**/.claude/**'] } },
// Scan only the project's own pages. Agent worktrees under .claude hold hundreds of copies of them and made the first page load take 13 s.
- optimizeDeps: { entries: ['*.html', 'bench/**/*.html'] },
+ // The browser denoiser page imports `denoiser`, which is installed by hand (bench/reference/denoise-browser.mjs). Scanning it
+ // failed the whole scan, so gl-matrix was found at runtime and Vite reloaded pages in the middle of tests (issue #314).
+ optimizeDeps: {
+ entries: ['*.html', 'bench/**/*.html', '!bench/reference/denoise-browser/**'],
+ include: ['gl-matrix'],
+ },
preview: { headers },
build: {
rolldownOptions: {