[PR #1754] [MERGED] Decide bundle warning policy #5262

Closed
opened 2026-10-22 04:14:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1754
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte

Base: refactor ← Head: chore/issue-1532-bundle-warning-policy


📝 Commits (1)

  • 1649238 Document bundle warning policy

📊 Changes

3 files changed (+12 additions, -2 deletions)

View changed files

📝 src/features/modes/game/lib/game-tag-parser.ts (+1 -1)
📝 src/styles/globals.css (+5 -1)
📝 vite.config.ts (+6 -0)

📄 Description

Linked issue

Closes #1532

Why this change

  • pnpm build was still noisy after the earlier chunk-splitting work because Vite's default 500 kB raw chunk warning was below the intentionally measured current lazy chunk sizes.
  • Tailwind was also scanning non-UI text and comments, producing invalid arbitrary-property CSS for examples like [file:line] and [dice:1d20].

What changed

  • Set Vite's chunkSizeWarningLimit to 800 kB with a comment tying the threshold to the measured refactor chunks and existing pnpm perf:size transfer budgets.
  • Switched Tailwind to explicit source registration for the app UI surfaces instead of repository-wide automatic source detection.
  • Reworded one game tag parser comment so it no longer looks like a Tailwind arbitrary property candidate.

Refactor impact

Primary owner:

Build/frontend styling configuration.

Impact areas reviewed:

  • Vite production build output
  • Tailwind source scanning
  • Game tag parser comment-only reference

Boundary notes:

  • No engine behavior changed.
  • No shared API, Tauri/Rust, storage, remote runtime, schema, dependency, or version files changed.

Pressure points touched:

  • Global stylesheet Tailwind import/source scan policy
  • Vite build warning policy

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran pnpm build: passed with no Vite large-chunk warning and no esbuild CSS warning.
  • Codex checked generated CSS for the false file:line and dice:1d20 arbitrary-property selectors: none found.
  • Codex ran pnpm perf:size: passed with JS 1.09 MB / 1.7 MB and CSS 53.12 kB / 250 kB.
  • Codex ran pnpm check: passed.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

N/A. Build/style pipeline hygiene only; no visible UI behavior changed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1754 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `chore/issue-1532-bundle-warning-policy` --- ### 📝 Commits (1) - [`1649238`](https://github.com/Pasta-Devs/Marinara-Engine/commit/16492384d7b7dc5eca212efdf41634d07333a5b5) Document bundle warning policy ### 📊 Changes **3 files changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/lib/game-tag-parser.ts` (+1 -1) 📝 `src/styles/globals.css` (+5 -1) 📝 `vite.config.ts` (+6 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1532 ## Why this change - `pnpm build` was still noisy after the earlier chunk-splitting work because Vite's default 500 kB raw chunk warning was below the intentionally measured current lazy chunk sizes. - Tailwind was also scanning non-UI text and comments, producing invalid arbitrary-property CSS for examples like `[file:line]` and `[dice:1d20]`. ## What changed - Set Vite's `chunkSizeWarningLimit` to 800 kB with a comment tying the threshold to the measured refactor chunks and existing `pnpm perf:size` transfer budgets. - Switched Tailwind to explicit source registration for the app UI surfaces instead of repository-wide automatic source detection. - Reworded one game tag parser comment so it no longer looks like a Tailwind arbitrary property candidate. ## Refactor impact Primary owner: Build/frontend styling configuration. Impact areas reviewed: - Vite production build output - Tailwind source scanning - Game tag parser comment-only reference Boundary notes: - No engine behavior changed. - No shared API, Tauri/Rust, storage, remote runtime, schema, dependency, or version files changed. Pressure points touched: - Global stylesheet Tailwind import/source scan policy - Vite build warning policy ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `pnpm build`: passed with no Vite large-chunk warning and no esbuild CSS warning. - Codex checked generated CSS for the false `file:line` and `dice:1d20` arbitrary-property selectors: none found. - Codex ran `pnpm perf:size`: passed with JS 1.09 MB / 1.7 MB and CSS 53.12 kB / 250 kB. - Codex ran `pnpm check`: passed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A. Build/style pipeline hygiene only; no visible UI behavior changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5262
No description provided.