next.js
24969d29 - perf: split webpack layer utilities to avoid loading heavy build/utils.ts

Commit
5 days ago
perf: split webpack layer utilities to avoid loading heavy build/utils.ts Split `shouldUseReactServerCondition`, `isWebpackClientOnlyLayer`, `isWebpackDefaultLayer`, `isWebpackBundledLayer`, and `isWebpackAppPagesLayer` from build/utils.ts into a new lightweight webpack-layer.ts file. This avoids loading the 1683-line utils.ts during dev server boot when only these simple layer check functions are needed (via swc/options.ts). The heavy utils.ts imports browserslist, loadComponents, getRuntimeContext, and has side effects like require-hook and node-polyfill-crypto. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Author
Parents
Loading