Commit Graph

6 Commits

Author SHA1 Message Date
Janka Uryga cb49b483f1 Reland "Ensure mangling is disabled for dev runtime builds (#75297)" (#79201)
Reapplies #75297

Also fixes some rspack tests which didn't await assertions properly so they might have looked like they're passing
2025-05-14 17:38:01 +02:00
JJ Kasper 62a3f91c1a Re-land updated bundler for pre-bundling (#79164)
Re-lands https://github.com/vercel/next.js/pull/75294 which uses rspack
for our prebundling of runtimes which can be slow when developing
locally.
2025-05-13 11:15:05 -07:00
JJ Kasper 0be280dc79 Revert changing bundler for runtime bundle but keep externals fix (#75412)
This reverts the bundler change part while we investigate source map
issue but keeps the externals optimize preventing the runtime bundle
from inflating back to over `4MB`.

This reverts commit 98b0700e97
This reverts commit 04c3f0b29c
2025-01-29 16:50:31 +00:00
JJ Kasper 98b0700e97 Ensure mangling is disabled for dev runtime builds (#75297)
Just ensures we keep mangling behavior prior to
https://github.com/vercel/next.js/pull/75294

---------

Co-authored-by: Hendrik Liebau <mail@hendrik-liebau.de>
2025-01-25 00:34:44 +00:00
JJ Kasper 04c3f0b29c Update bundler for pre-bundling runtime (#75294)
This improves the build script quite a bit and makes dev editing much
faster. Also fixed excludes causing webpack/babel compiled packages to
be bundled into the runtime un-necessarily reducing from `10MB` ->
`1.2MB`.

Before: `Finished next_bundle in 9.67s`

After: `Finished next_bundle in 1.27s`

Validated here
https://github.com/vercel/vercel/actions/runs/12957911052/job/36147343396?pr=12914
2025-01-24 22:19:18 +00:00
Sebastian "Sebbie" Silbermann 776cd6828a Ensure Next.js is ignore-listed when used as external (#72498)
Observable in `pnpm next dev test/development/app-dir/dynamic-io-dev-errors/` and `/no-accessed-data`. It only affects the bottom stacks in that particular stack so assertions are not viable yet until the full stack is properly sourcemapped.
2024-11-13 14:20:22 +01:00