You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document BUILD_RESOLVE_SYMLINKS and cache compression
behavior, and tighten related parsing in the build script.
Ensure watch-once packaging failures exit non-zero and
simplify error logging.
Key CI webpack cache by full Node version for safety.
Copy file name to clipboardExpand all lines: AGENTS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,12 @@ Always reference these instructions first and fall back to search or bash comman
28
28
- Default: `0` (no compression) for faster warm builds on CPU-bound SSD machines
29
29
- Options: `0|false|none`, `gzip` (or `brotli` if explicitly desired)
30
30
- Affects only `.cache/webpack` size/speed; does not change final artifacts
31
+
- Note: Babel loader cache uses its own compression setting (currently disabled for speed) and is independent of BUILD_CACHE_COMPRESSION
31
32
- BUILD_WATCH_ONCE (dev): When set, `npm run dev` runs a single build and exits (useful for timing)
32
33
- BUILD_POOL_TIMEOUT: Override thread-loader production pool timeout (ms)
33
34
- Default: `2000`. Increase if workers recycle too aggressively on slow machines/CI
35
+
- BUILD_RESOLVE_SYMLINKS: When set to `1`/`true`, re-enable Webpack symlink resolution for `npm link`/pnpm workspace development. Default is `false` to improve performance and ensure consistent module identity (avoids duplicate module instances)
34
36
- Source maps (dev): Dev builds emit external `.map` files next to JS bundles for CSP-safe debugging; production builds disable source maps
35
-
- Symlinks: Webpack uses `resolve.symlinks: false` to improve performance and ensure consistent module identity; if you rely on `npm link`/pnpm workspaces, temporarily enable symlink resolution while developing linked packages
36
37
37
38
Performance defaults: esbuild handles JS/CSS minification. In development, CSS is injected via style-loader; in production, CSS is extracted via MiniCssExtractPlugin. Thread-loader is enabled by default in both dev and prod.
0 commit comments