Unverified Commit f26a6abf authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Clarify browser source maps during build analysis

Co-authored-by: 's avatarWill Binns-Smith <755844+wbinnssmith@users.noreply.github.com>
parent 7a8945c5
...@@ -63,7 +63,7 @@ pnpm next build --analyze ...@@ -63,7 +63,7 @@ pnpm next build --analyze
bunx next build --analyze bunx next build --analyze
``` ```
Build analysis is saved to `.next/diagnostics/analyze`. Browser source maps are only published if enabled in your build configuration. The separate `next analyze` command opens the interactive analyzer without producing a production build. Build analysis is saved to `.next/diagnostics/analyze`. When browser source maps are enabled in your build configuration, `--analyze` still publishes them. Otherwise, it keeps mappings for analysis without publishing browser maps. The separate `next analyze` command opens the interactive analyzer without producing a production build.
### Step 2: Filter and inspect modules ### Step 2: Filter and inspect modules
......
...@@ -99,7 +99,7 @@ The following options are available for the `next build` command: ...@@ -99,7 +99,7 @@ The following options are available for the `next build` command:
| `[directory]` | A directory on which to build the application. If not provided, the current directory will be used. | | `[directory]` | A directory on which to build the application. If not provided, the current directory will be used. |
| `--turbopack` | Force enable [Turbopack](/docs/app/api-reference/turbopack) (enabled by default). Also available as `--turbo`. | | `--turbopack` | Force enable [Turbopack](/docs/app/api-reference/turbopack) (enabled by default). Also available as `--turbo`. |
| `--webpack` | Build using the bundled Webpack. | | `--webpack` | Build using the bundled Webpack. |
| `--analyze` | Build with Turbopack and write bundle analysis to `.next/diagnostics/analyze`. Does not publish additional browser source maps. | | `--analyze` | Build with Turbopack and write bundle analysis to `.next/diagnostics/analyze`. Publishes browser source maps when configured to do so. |
| `-d` or `--debug` | Enables a more verbose build output. With this flag enabled additional build output like rewrites, redirects, and headers will be shown. | | `-d` or `--debug` | Enables a more verbose build output. With this flag enabled additional build output like rewrites, redirects, and headers will be shown. |
| `--profile` | Enables production [profiling for React](https://react.dev/reference/react/Profiler). | | `--profile` | Enables production [profiling for React](https://react.dev/reference/react/Profiler). |
| `--no-mangling` | Disables [mangling](https://en.wikipedia.org/wiki/Name_mangling). This may affect performance and should only be used for debugging purposes. | | `--no-mangling` | Disables [mangling](https://en.wikipedia.org/wiki/Name_mangling). This may affect performance and should only be used for debugging purposes. |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment