Skip to content

Apply new strategy#617

Merged
owjs3901 merged 17 commits into
mainfrom
new-strategy
Jun 6, 2026
Merged

Apply new strategy#617
owjs3901 merged 17 commits into
mainfrom
new-strategy

Conversation

@owjs3901
Copy link
Copy Markdown
Contributor

@owjs3901 owjs3901 commented Jun 3, 2026

No description provided.

owjs3901 added 4 commits June 3, 2026 18:34
…font-face

rm_global_css used the canonical bucket key, so extracting a collapsed
member (e.g. Footer.tsx -> layout.tsx) deleted the bucket-root's globalCss
(@font-face, global selectors). Order-dependent: CI hit the bad order and
the landing buttons rendered in a fallback font (246 -> 234).

- bindings: rm_global_css uses the RAW filename (globalCss is per-source-file).
- sheet: rm_global_css derives the property bucket via canonical(file) so a
  collapsed file that DOES declare globalCss still clears its own atoms.
- sheet: dedup identical @font-face across file keys (server+client extraction).
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Changepacks

@devup-ui/wasm@1.0.74 → 1.0.75 - bindings/devup-ui-wasm/package.json

Patch

  • Apply new strategy

@devup-ui/bun-plugin@1.0.9 → 1.0.10 - packages/bun-plugin/package.json

Patch

  • Apply new strategy
  • await Bun.plugin registration so preload-driven bun test users don't race the async setup()

@devup-ui/components@0.1.46 → 0.1.47 - packages/components/package.json

Patch

  • Apply new strategy

@devup-ui/eslint-plugin@1.0.15 → 1.0.16 - packages/eslint-plugin/package.json

Patch

  • Apply new strategy

@devup-ui/next-plugin@1.0.77 → 1.0.78 - packages/next-plugin/package.json

Patch

  • Apply new strategy

@devup-ui/plugin-utils@1.0.7 → 1.0.8 - packages/plugin-utils/package.json

Patch

  • Apply new strategy

@devup-ui/rsbuild-plugin@1.0.55 → 1.0.56 - packages/rsbuild-plugin/package.json

Patch

  • Apply new strategy

@devup-ui/vite-plugin@1.0.60 → 1.0.61 - packages/vite-plugin/package.json

Patch

  • Apply new strategy

@devup-ui/webpack-plugin@1.0.60 → 1.0.61 - packages/webpack-plugin/package.json

Patch

  • Apply new strategy

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
bindings/devup-ui-wasm/src/lib.rs 100.00% <100.00%> (ø)
libs/css/src/atom_hoist.rs 100.00% <100.00%> (ø)
libs/css/src/file_map.rs 100.00% <100.00%> (ø)
libs/css/src/file_routes.rs 100.00% <100.00%> (ø)
libs/css/src/lib.rs 100.00% <ø> (ø)
libs/extractor/src/lib.rs 100.00% <100.00%> (ø)
libs/sheet/src/lib.rs 100.00% <100.00%> (ø)
packages/next-plugin/src/coordinator.ts 100.00% <100.00%> (ø)
packages/next-plugin/src/loader.ts 100.00% <100.00%> (ø)
packages/next-plugin/src/plugin.ts 100.00% <100.00%> (ø)
... and 6 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

owjs3901 added 13 commits June 4, 2026 00:13
…d CSS

Turbopack single-importer collapse merges multiple source files into one
shared CSS chunk. The coordinator used a 2500ms idle heuristic to decide a
chunk was complete and served getCss() during extraction gaps on slow CI,
dropping atoms from members extracted in a later wave (intermittent ~82px
landing layout shift; main without collapse was unaffected and passed 108/108).

Replace the global idle guess for fileNum-tagged /css requests with a
deterministic per-bucket wait: given the canonicalMap, precompute
bucketToMembers and block /css?fileNum=N until every member of its bucket has
been POSTed to /extract (60s defensive fail-open). Base css and unknown
buckets keep waitForIdle.

- coordinator.ts: canonicalMap + idleThresholdMs options, bucketToMembers,
  extractedFiles tracking, fileNumToBucket, waitForBucket poller.
- plugin.ts: forward the existing canonicalMap into startCoordinator.
- tests: idleThresholdMs, per-bucket race, singleton bucket, plugin wiring.
@owjs3901 owjs3901 merged commit bbbdead into main Jun 6, 2026
3 checks passed
@owjs3901 owjs3901 deleted the new-strategy branch June 6, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant