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
docs: update configuration and advanced topics for Turbopack default
Phase 3: Configuration & Advanced Updates
- Update Turbopack config docs to reflect dev default behavior
- Update Memory Usage docs to mention --webpack flag requirements
- Clarify when Webpack-specific features apply
- Update condition matching documentation for new defaults
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: docs/01-app/03-api-reference/05-config/01-next-config-js/turbopack.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,8 +186,8 @@ In addition, a number of built-in conditions are supported:
186
186
187
187
-`browser`: Matches code that will execute on the client. Server code can be matched using `{not: 'browser'}`.
188
188
-`foreign`: Matches code in `node_modules`, as well as some Next.js internals. Usually you'll want to restrict loaders to `{not: 'foreign'}`. This can improve performance by reducing the number of files the loader is invoked on.
189
-
-`development`: Matches when using `next dev --turbopack`.
190
-
-`production`: Matches when using `next build --turbopack`.
189
+
-`development`: Matches when using `next dev`
190
+
-`production`: Matches when using `next build`.
191
191
-`node`: Matches code that will run on the default Node.js runtime.
192
192
-`edge-light`: Matches code that will run on the [Edge runtime](/docs/app/api-reference/edge).
0 commit comments