Skip to content

Get rid of some Vite warnings - #3420

Merged
david-crespo merged 3 commits into
mainfrom
vite-warnings
Oct 22, 2026
Merged

david-crespo merged 3 commits into
mainfrom
vite-warnings

Conversation

@david-crespo

Copy link
Copy Markdown
Collaborator

Get rid of some annoying warnings we don't care about. I also turned off route module splitting, which splits the clientLoader from the rest of a route module, because it mostly creates a bunch of tiny files in the bundle that are never actually loaded by the browser.

image image

@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
console Ready Ready Preview Oct 22, 2026 9:38pm UTC

Request Review

@david-crespo
david-crespo enabled auto-merge (squash) October 22, 2026 21:38
@david-crespo

Copy link
Copy Markdown
Collaborator Author

@claude review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is a small build-config cleanup with no behavior risk that I could find.

What was reviewed:

  • import.meta.dirname in vite.config.ts: package.json sets "type": "module" and Node ^24.15.0, so it is available where the config loads.
  • The .ts extension on the nexus-console import: tsconfig.json already enables allowImportingTsExtensions, and Vite resolves the path directly.
  • splitRouteModules: false and chunkSizeWarningLimit: 700: these only change how chunks are laid out and when the warning fires. Neither touches the assetsInlineLimit: 0 CSP guard or the THEME_INIT_HASH input.
Extended reasoning...

The change touches only build config: react-router.config.ts gains one flag, and vite.config.ts gets an import extension, a warning threshold and an import.meta.dirname swap. It touches no auth, injection or data-exposure surface, and the security-header import and CSP-related settings work the same as before. The repo already supports both portability concerns: it is ESM on Node 24, and tsconfig allows .ts import extensions. There is no CODEOWNERS file, and the PR timeline shows no reviewer objections.

@david-crespo
david-crespo merged commit 294d706 into main Oct 22, 2026
10 checks passed
@david-crespo
david-crespo deleted the vite-warnings branch October 22, 2026 21:54
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Nov 20, 2026
oxidecomputer/console@00cc6bf...fe921de

* [fe921de7](oxidecomputer/console@fe921de7)
oxidecomputer/console#3447
* [0d501853](oxidecomputer/console@0d501853)
oxidecomputer/console#3440
* [f9f6fee6](oxidecomputer/console@f9f6fee6)
oxidecomputer/console#3445
* [84c2b7d9](oxidecomputer/console@84c2b7d9)
oxidecomputer/console#3446
* [ece52b51](oxidecomputer/console@ece52b51)
oxidecomputer/console#3411
* [a67b1684](oxidecomputer/console@a67b1684)
oxidecomputer/console#3444
* [e9c1e3c9](oxidecomputer/console@e9c1e3c9)
oxidecomputer/console#3443
* [efc2149c](oxidecomputer/console@efc2149c)
oxidecomputer/console#3442
* [3b76a1ef](oxidecomputer/console@3b76a1ef)
oxidecomputer/console#3441
* [47477f2d](oxidecomputer/console@47477f2d)
oxidecomputer/console#3439
* [e78bb08a](oxidecomputer/console@e78bb08a)
oxidecomputer/console#3437
* [129a4a55](oxidecomputer/console@129a4a55)
oxidecomputer/console#3436
* [bc4acfba](oxidecomputer/console@bc4acfba)
oxidecomputer/console#3419
* [595b391c](oxidecomputer/console@595b391c)
oxidecomputer/console#3431
* [3a0b5a94](oxidecomputer/console@3a0b5a94)
oxidecomputer/console#3421
* [7b9d2e38](oxidecomputer/console@7b9d2e38)
oxidecomputer/console#3430
* [94f1e9e0](oxidecomputer/console@94f1e9e0)
oxidecomputer/console#3422
* [d8b40dfa](oxidecomputer/console@d8b40dfa)
oxidecomputer/console#3428
* [12bb33ec](oxidecomputer/console@12bb33ec)
oxidecomputer/console#3426
* [615ac0f2](oxidecomputer/console@615ac0f2)
oxidecomputer/console#3425
* [294d7066](oxidecomputer/console@294d7066)
oxidecomputer/console#3420
* [31b93cbc](oxidecomputer/console@31b93cbc)
oxidecomputer/console#3418
* [d84d7104](oxidecomputer/console@d84d7104)
oxidecomputer/console#3393
* [7988361e](oxidecomputer/console@7988361e)
oxidecomputer/console#3412
* [bae3b7a6](oxidecomputer/console@bae3b7a6)
oxidecomputer/console#3400
* [b9503394](oxidecomputer/console@b9503394)
oxidecomputer/console#3409
* [5147e774](oxidecomputer/console@5147e774)
oxidecomputer/console#3408
* [16b3d164](oxidecomputer/console@16b3d164)
oxidecomputer/console#3407
* [a64d548d](oxidecomputer/console@a64d548d)
oxidecomputer/console#3406
* [df32a018](oxidecomputer/console@df32a018)
oxidecomputer/console#3405
* [1cd46185](oxidecomputer/console@1cd46185)
oxidecomputer/console#3403
* [f4684104](oxidecomputer/console@f4684104)
oxidecomputer/console#3402

This branch was successfully deployed

1 active deployment
Preview — c282c6cd Deployed Oct 22, 2026 by vercel[bot]
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