Skip to content

Conversation

@sokra
Copy link
Member

@sokra sokra commented Mar 2, 2023

Description

Keeps track of available modules when importing new chunk groups. Omits assets that are already available in the parent chunk group(s) when determining assets to be included in chunks.

Testing Instructions

Dynamic imports should not include modules that are already in the parent chunks

@vercel
Copy link
Contributor

vercel bot commented Mar 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-cra-web 🔄 Building (Inspect) Mar 10, 2023 at 7:24PM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 10, 2023 at 7:24PM (UTC)
8 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Mar 10, 2023 at 7:24PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

Benchmark for 1e5793e

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.63ms ± 0.14ms N/A N/A N/A
bench_hmr_to_commit/Turbopack RSC/1000 modules 522.54ms ± 1.52ms N/A N/A N/A
bench_hmr_to_eval/Turbopack CSR/1000 modules 8944.01µs ± 31.33µs 8794.33µs ± 35.21µs -1.67% -0.19%
bench_hmr_to_eval/Turbopack RCC/1000 modules 11.26ms ± 0.10ms N/A N/A N/A
bench_hydration/Turbopack RCC/1000 modules 3648.10ms ± 12.14ms N/A N/A N/A
bench_hydration/Turbopack RSC/1000 modules 3304.88ms ± 21.40ms N/A N/A N/A
bench_startup/Turbopack CSR/1000 modules 2586.65ms ± 4.23ms 2624.22ms ± 6.28ms +1.45% +0.64%
bench_startup/Turbopack RCC/1000 modules 2160.17ms ± 7.15ms 2340.71ms ± 6.43ms +8.36% +7.05%
bench_startup/Turbopack RSC/1000 modules 2077.80ms ± 8.26ms 2141.51ms ± 11.51ms +3.07% +1.15%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9991.38µs ± 23.97µs 10.03ms ± 0.06ms +0.42%
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.63ms ± 0.14ms N/A N/A N/A
bench_hmr_to_commit/Turbopack RSC/1000 modules 522.54ms ± 1.52ms N/A N/A N/A
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.19ms ± 0.03ms 10.19ms ± 0.03ms +0.04%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8944.01µs ± 31.33µs 8794.33µs ± 35.21µs -1.67% -0.19%
bench_hmr_to_eval/Turbopack RCC/1000 modules 11.26ms ± 0.10ms N/A N/A N/A
bench_hmr_to_eval/Turbopack SSR/1000 modules 9122.07µs ± 30.94µs 9056.89µs ± 59.40µs -0.71%
bench_hydration/Turbopack RCC/1000 modules 3648.10ms ± 12.14ms N/A N/A N/A
bench_hydration/Turbopack RSC/1000 modules 3304.88ms ± 21.40ms N/A N/A N/A
bench_hydration/Turbopack SSR/1000 modules 3353.65ms ± 8.78ms 3348.27ms ± 6.88ms -0.16%
bench_startup/Turbopack CSR/1000 modules 2586.65ms ± 4.23ms 2624.22ms ± 6.28ms +1.45% +0.64%
bench_startup/Turbopack RCC/1000 modules 2160.17ms ± 7.15ms 2340.71ms ± 6.43ms +8.36% +7.05%
bench_startup/Turbopack RSC/1000 modules 2077.80ms ± 8.26ms 2141.51ms ± 11.51ms +3.07% +1.15%
bench_startup/Turbopack SSR/1000 modules 2066.97ms ± 4.23ms 2066.41ms ± 2.40ms -0.03%

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2023

Benchmark for 9fbd8f5

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RSC/1000 modules 489.20ms ± 3.19ms 517.43ms ± 2.51ms +5.77% +3.40%
bench_hmr_to_eval/Turbopack RCC/1000 modules 11.22ms ± 0.14ms 22.41ms ± 5.06ms +99.72% +6.81%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8891.56µs ± 53.31µs 8109.85µs ± 110.19µs -8.79% -5.18%
bench_hydration/Turbopack RCC/1000 modules 3581.29ms ± 9.23ms 3809.82ms ± 6.77ms +6.38% +5.46%
bench_hydration/Turbopack RSC/1000 modules 3252.17ms ± 19.74ms 3556.78ms ± 11.50ms +9.37% +7.36%
bench_startup/Turbopack CSR/1000 modules 2534.91ms ± 4.78ms 2564.74ms ± 5.40ms +1.18% +0.37%
bench_startup/Turbopack RCC/1000 modules 2256.61ms ± 12.86ms 2143.09ms ± 4.96ms -5.03% -3.49%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9751.78µs ± 31.36µs 9853.64µs ± 35.82µs +1.04%
bench_hmr_to_commit/Turbopack RCC/1000 modules 13.97ms ± 0.11ms 18.57ms ± 2.66ms +32.97%
bench_hmr_to_commit/Turbopack RSC/1000 modules 489.20ms ± 3.19ms 517.43ms ± 2.51ms +5.77% +3.40%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.02ms ± 0.08ms 10.02ms ± 0.03ms -0.10%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8103.52µs ± 196.60µs 7583.35µs ± 167.80µs -6.42%
bench_hmr_to_eval/Turbopack RCC/1000 modules 11.22ms ± 0.14ms 22.41ms ± 5.06ms +99.72% +6.81%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8891.56µs ± 53.31µs 8109.85µs ± 110.19µs -8.79% -5.18%
bench_hydration/Turbopack RCC/1000 modules 3581.29ms ± 9.23ms 3809.82ms ± 6.77ms +6.38% +5.46%
bench_hydration/Turbopack RSC/1000 modules 3252.17ms ± 19.74ms 3556.78ms ± 11.50ms +9.37% +7.36%
bench_hydration/Turbopack SSR/1000 modules 3358.77ms ± 10.95ms 3375.02ms ± 5.34ms +0.48%
bench_startup/Turbopack CSR/1000 modules 2534.91ms ± 4.78ms 2564.74ms ± 5.40ms +1.18% +0.37%
bench_startup/Turbopack RCC/1000 modules 2256.61ms ± 12.86ms 2143.09ms ± 4.96ms -5.03% -3.49%
bench_startup/Turbopack RSC/1000 modules 2032.55ms ± 7.33ms 2059.00ms ± 7.78ms +1.30%
bench_startup/Turbopack SSR/1000 modules 2018.89ms ± 1.92ms 2023.26ms ± 4.08ms +0.22%

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

Benchmark for 09b9ce9

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.22ms ± 0.05ms 15.30ms ± 1.76ms +36.39% +4.16%
bench_hydration/Turbopack RCC/1000 modules 3592.15ms ± 8.08ms 3788.25ms ± 5.38ms +5.46% +4.69%
bench_hydration/Turbopack RSC/1000 modules 3228.80ms ± 15.99ms 3504.92ms ± 6.72ms +8.55% +7.08%
bench_hydration/Turbopack SSR/1000 modules 3279.02ms ± 5.51ms 3297.52ms ± 3.41ms +0.56% +0.02%
bench_startup/Turbopack CSR/1000 modules 2569.80ms ± 9.13ms 2616.90ms ± 11.09ms +1.83% +0.26%
bench_startup/Turbopack RSC/1000 modules 2030.58ms ± 8.30ms 2067.62ms ± 5.71ms +1.82% +0.44%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9518.47µs ± 29.67µs 9455.76µs ± 44.13µs -0.66%
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.22ms ± 0.05ms 15.30ms ± 1.76ms +36.39% +4.16%
bench_hmr_to_commit/Turbopack RSC/1000 modules 512.91ms ± 1.91ms 516.57ms ± 0.93ms +0.71%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9569.91µs ± 52.14µs 9600.57µs ± 46.04µs +0.32%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8504.80µs ± 47.73µs 8551.20µs ± 61.00µs +0.55%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.10ms ± 0.06ms 12.40ms ± 1.87ms +22.79%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8625.95µs ± 31.32µs 8664.00µs ± 36.07µs +0.44%
bench_hydration/Turbopack RCC/1000 modules 3592.15ms ± 8.08ms 3788.25ms ± 5.38ms +5.46% +4.69%
bench_hydration/Turbopack RSC/1000 modules 3228.80ms ± 15.99ms 3504.92ms ± 6.72ms +8.55% +7.08%
bench_hydration/Turbopack SSR/1000 modules 3279.02ms ± 5.51ms 3297.52ms ± 3.41ms +0.56% +0.02%
bench_startup/Turbopack CSR/1000 modules 2569.80ms ± 9.13ms 2616.90ms ± 11.09ms +1.83% +0.26%
bench_startup/Turbopack RCC/1000 modules 2099.61ms ± 3.23ms 2098.09ms ± 3.69ms -0.07%
bench_startup/Turbopack RSC/1000 modules 2030.58ms ± 8.30ms 2067.62ms ± 5.71ms +1.82% +0.44%
bench_startup/Turbopack SSR/1000 modules 2024.77ms ± 2.66ms 2025.82ms ± 2.66ms +0.05%

@sokra sokra marked this pull request as ready for review March 8, 2023 17:56
@sokra sokra requested a review from a team as a code owner March 8, 2023 17:56
@sokra sokra requested review from alexkirsz and jridgewell March 8, 2023 17:57
@sokra sokra force-pushed the sokra/dynamic-import-perf branch from dd7f0ba to 4021fc4 Compare March 9, 2023 15:34
@sokra sokra added the pr: automerge Kodiak will merge these automatically after checks pass label Mar 10, 2023
@github-actions
Copy link
Contributor

Benchmark for 3ac106d

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 3656.93ms ± 7.40ms 3873.97ms ± 7.61ms +5.94% +5.09%
bench_hydration/Turbopack RSC/1000 modules 3317.72ms ± 16.42ms 3626.02ms ± 6.72ms +9.29% +7.82%
bench_startup/Turbopack RSC/1000 modules 2093.80ms ± 5.65ms 2162.70ms ± 10.50ms +3.29% +1.74%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.24ms ± 0.03ms 10.34ms ± 0.06ms +0.97%
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.84ms ± 0.05ms 11.77ms ± 0.06ms -0.58%
bench_hmr_to_commit/Turbopack RSC/1000 modules 529.12ms ± 2.23ms 532.44ms ± 3.13ms +0.63%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.38ms ± 0.03ms 10.37ms ± 0.07ms -0.16%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9301.84µs ± 28.30µs 9320.55µs ± 40.60µs +0.20%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.63ms ± 0.06ms 10.82ms ± 0.07ms +1.84%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9386.87µs ± 37.58µs 9427.02µs ± 26.31µs +0.43%
bench_hydration/Turbopack RCC/1000 modules 3656.93ms ± 7.40ms 3873.97ms ± 7.61ms +5.94% +5.09%
bench_hydration/Turbopack RSC/1000 modules 3317.72ms ± 16.42ms 3626.02ms ± 6.72ms +9.29% +7.82%
bench_hydration/Turbopack SSR/1000 modules 3373.16ms ± 6.80ms 3369.16ms ± 6.30ms -0.12%
bench_startup/Turbopack CSR/1000 modules 2640.64ms ± 5.27ms 2629.44ms ± 10.34ms -0.42%
bench_startup/Turbopack RCC/1000 modules 2157.71ms ± 3.51ms 2164.45ms ± 4.45ms +0.31%
bench_startup/Turbopack RSC/1000 modules 2093.80ms ± 5.65ms 2162.70ms ± 10.50ms +3.29% +1.74%
bench_startup/Turbopack SSR/1000 modules 2067.39ms ± 2.13ms 2076.82ms ± 3.57ms +0.46%

sokra added 2 commits March 10, 2023 17:44
use entry chunk for chunk list path instead of only module to include all info

chunk path no longer depends on chunk group content for evaluated chunks
@github-actions
Copy link
Contributor

Benchmark for cafec2e

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.49ms ± 0.09ms N/A N/A N/A
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.01ms ± 0.22ms N/A N/A N/A
bench_hmr_to_commit/Turbopack RSC/1000 modules 509.82ms ± 2.18ms N/A N/A N/A
bench_hmr_to_commit/Turbopack SSR/1000 modules 9932.33µs ± 68.10µs N/A N/A N/A
bench_hmr_to_eval/Turbopack CSR/1000 modules 9057.98µs ± 75.80µs N/A N/A N/A
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.79ms ± 0.08ms N/A N/A N/A
bench_hmr_to_eval/Turbopack SSR/1000 modules 9513.37µs ± 55.53µs N/A N/A N/A
bench_hydration/Turbopack RCC/1000 modules 3635.56ms ± 11.20ms 3811.34ms ± 6.36ms +4.83% +3.85%
bench_hydration/Turbopack RSC/1000 modules 3269.82ms ± 11.09ms 3546.05ms ± 8.61ms +8.45% +7.19%
bench_hydration/Turbopack SSR/1000 modules 3315.69ms ± 5.98ms 3290.11ms ± 3.97ms -0.77% -0.17%
bench_startup/Turbopack RCC/1000 modules 2124.62ms ± 3.84ms 2108.78ms ± 3.40ms -0.75% -0.06%
bench_startup/Turbopack RSC/1000 modules 2050.30ms ± 4.59ms 2132.47ms ± 6.78ms +4.01% +2.89%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.49ms ± 0.09ms N/A N/A N/A
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.01ms ± 0.22ms N/A N/A N/A
bench_hmr_to_commit/Turbopack RSC/1000 modules 509.82ms ± 2.18ms N/A N/A N/A
bench_hmr_to_commit/Turbopack SSR/1000 modules 9932.33µs ± 68.10µs N/A N/A N/A
bench_hmr_to_eval/Turbopack CSR/1000 modules 9057.98µs ± 75.80µs N/A N/A N/A
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.79ms ± 0.08ms N/A N/A N/A
bench_hmr_to_eval/Turbopack SSR/1000 modules 9513.37µs ± 55.53µs N/A N/A N/A
bench_hydration/Turbopack RCC/1000 modules 3635.56ms ± 11.20ms 3811.34ms ± 6.36ms +4.83% +3.85%
bench_hydration/Turbopack RSC/1000 modules 3269.82ms ± 11.09ms 3546.05ms ± 8.61ms +8.45% +7.19%
bench_hydration/Turbopack SSR/1000 modules 3315.69ms ± 5.98ms 3290.11ms ± 3.97ms -0.77% -0.17%
bench_startup/Turbopack CSR/1000 modules 2592.56ms ± 4.72ms 2608.84ms ± 6.88ms +0.63%
bench_startup/Turbopack RCC/1000 modules 2124.62ms ± 3.84ms 2108.78ms ± 3.40ms -0.75% -0.06%
bench_startup/Turbopack RSC/1000 modules 2050.30ms ± 4.59ms 2132.47ms ± 6.78ms +4.01% +2.89%
bench_startup/Turbopack SSR/1000 modules 2035.02ms ± 3.21ms 2026.78ms ± 1.95ms -0.40%

@kodiakhq kodiakhq bot merged commit df38582 into main Mar 10, 2023
@kodiakhq kodiakhq bot deleted the sokra/dynamic-import-perf branch March 10, 2023 19:42
@github-actions
Copy link
Contributor

Benchmark for 5667ba3

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.27ms ± 0.04ms 9933.85µs ± 34.13µs -3.25% -1.74%
bench_hmr_to_commit/Turbopack RSC/1000 modules 498.98ms ± 1.24ms 512.06ms ± 1.79ms +2.62% +1.40%
bench_hydration/Turbopack RCC/1000 modules 3762.31ms ± 11.32ms 3939.49ms ± 12.63ms +4.71% +3.42%
bench_hydration/Turbopack RSC/1000 modules 3414.58ms ± 8.21ms 3707.10ms ± 8.47ms +8.57% +7.55%
bench_startup/Turbopack RCC/1000 modules 2222.49ms ± 2.17ms 2131.79ms ± 15.46ms -4.08% -2.50%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.27ms ± 0.04ms 9933.85µs ± 34.13µs -3.25% -1.74%
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.81ms ± 0.17ms 12.06ms ± 0.16ms +2.12%
bench_hmr_to_commit/Turbopack RSC/1000 modules 498.98ms ± 1.24ms 512.06ms ± 1.79ms +2.62% +1.40%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.34ms ± 0.05ms 10.44ms ± 0.05ms +0.97%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9132.65µs ± 57.54µs 9247.61µs ± 27.59µs +1.26%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.39ms ± 0.18ms 10.57ms ± 0.14ms +1.77%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8938.60µs ± 35.53µs 8929.31µs ± 71.02µs -0.10%
bench_hydration/Turbopack RCC/1000 modules 3762.31ms ± 11.32ms 3939.49ms ± 12.63ms +4.71% +3.42%
bench_hydration/Turbopack RSC/1000 modules 3414.58ms ± 8.21ms 3707.10ms ± 8.47ms +8.57% +7.55%
bench_hydration/Turbopack SSR/1000 modules 3438.83ms ± 5.82ms 3436.31ms ± 7.39ms -0.07%
bench_startup/Turbopack CSR/1000 modules 2554.44ms ± 7.48ms 2541.71ms ± 7.30ms -0.50%
bench_startup/Turbopack RCC/1000 modules 2222.49ms ± 2.17ms 2131.79ms ± 15.46ms -4.08% -2.50%
bench_startup/Turbopack RSC/1000 modules 2035.88ms ± 8.77ms 2056.58ms ± 3.63ms +1.02%
bench_startup/Turbopack SSR/1000 modules 2005.78ms ± 3.93ms 1994.90ms ± 2.94ms -0.54%

jridgewell pushed a commit to vercel/next.js that referenced this pull request Mar 10, 2023
…#4056)

### Description

Keeps track of available modules when importing new chunk groups. Omits
assets that are already available in the parent chunk group(s) when
determining assets to be included in chunks.

### Testing Instructions

Dynamic imports should not include modules that are already in the
parent chunks

<!--
  When the below is checked (default) our PR bot will automatically
  assign labels to your PR based on the content to help the team
  organize and review it faster.
-->

- [x] Auto label
fixes WEB-599
sokra added a commit to vercel/next.js that referenced this pull request Mar 13, 2023
…#4056)

### Description

Keeps track of available modules when importing new chunk groups. Omits
assets that are already available in the parent chunk group(s) when
determining assets to be included in chunks.

### Testing Instructions

Dynamic imports should not include modules that are already in the
parent chunks

<!--
  When the below is checked (default) our PR bot will automatically
  assign labels to your PR based on the content to help the team
  organize and review it faster.
-->

- [x] Auto label
fixes WEB-599
@alexkirsz alexkirsz mentioned this pull request Mar 14, 2023
kodiakhq bot pushed a commit that referenced this pull request Mar 14, 2023
### Description

The fix introduced in #3542 was a workaround for CSS in dynamic imports
being included multiple times in a page, potentially overriding
precedence of earlier chunks, but introduced its own precedence issue
(the semantics of `@layer` are not fully compatible with our use case).
This is no longer necessary since #4056 made it so dynamic imports no
longer include items from the parent chunk.

### Testing Instructions

create-next-app with app support now looks visually identical with and
without --turbo.

Snapshots.
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…#4056)

### Description

Keeps track of available modules when importing new chunk groups. Omits
assets that are already available in the parent chunk group(s) when
determining assets to be included in chunks.

### Testing Instructions

Dynamic imports should not include modules that are already in the
parent chunks

<!--
  When the below is checked (default) our PR bot will automatically
  assign labels to your PR based on the content to help the team
  organize and review it faster.
-->

- [x] Auto label
fixes WEB-599
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

The fix introduced in vercel/turborepo#3542 was a workaround for CSS in dynamic imports
being included multiple times in a page, potentially overriding
precedence of earlier chunks, but introduced its own precedence issue
(the semantics of `@layer` are not fully compatible with our use case).
This is no longer necessary since vercel/turborepo#4056 made it so dynamic imports no
longer include items from the parent chunk.

### Testing Instructions

create-next-app with app support now looks visually identical with and
without --turbo.

Snapshots.
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…#4056)

### Description

Keeps track of available modules when importing new chunk groups. Omits
assets that are already available in the parent chunk group(s) when
determining assets to be included in chunks.

### Testing Instructions

Dynamic imports should not include modules that are already in the
parent chunks

<!--
  When the below is checked (default) our PR bot will automatically
  assign labels to your PR based on the content to help the team
  organize and review it faster.
-->

- [x] Auto label
fixes WEB-599
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

The fix introduced in vercel/turborepo#3542 was a workaround for CSS in dynamic imports
being included multiple times in a page, potentially overriding
precedence of earlier chunks, but introduced its own precedence issue
(the semantics of `@layer` are not fully compatible with our use case).
This is no longer necessary since vercel/turborepo#4056 made it so dynamic imports no
longer include items from the parent chunk.

### Testing Instructions

create-next-app with app support now looks visually identical with and
without --turbo.

Snapshots.
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…#4056)

### Description

Keeps track of available modules when importing new chunk groups. Omits
assets that are already available in the parent chunk group(s) when
determining assets to be included in chunks.

### Testing Instructions

Dynamic imports should not include modules that are already in the
parent chunks

<!--
  When the below is checked (default) our PR bot will automatically
  assign labels to your PR based on the content to help the team
  organize and review it faster.
-->

- [x] Auto label
fixes WEB-599
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

The fix introduced in vercel/turborepo#3542 was a workaround for CSS in dynamic imports
being included multiple times in a page, potentially overriding
precedence of earlier chunks, but introduced its own precedence issue
(the semantics of `@layer` are not fully compatible with our use case).
This is no longer necessary since vercel/turborepo#4056 made it so dynamic imports no
longer include items from the parent chunk.

### Testing Instructions

create-next-app with app support now looks visually identical with and
without --turbo.

Snapshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: automerge Kodiak will merge these automatically after checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants