Repository navigation
fix: unbreak CI after vite 8 bump and grammar/deps updates - #1300
Merged
Merged
Conversation
- wasm-inlined: force our wasm-inlining plugin to run with enforce: 'pre' so it wins over vite 8's new built-in bare .wasm ESM handling, which tried to instantiate onig.wasm's synthetic env imports and broke most of the test suite (Cannot find package 'env') - core/bundle tests: refresh inline snapshots for the loaded-language counts/list that changed with the tm-grammars/tm-themes update - pnpm overrides: pin rollup to a single deduped version so unbuild's nested rollup@4.62.2 doesn't clash in types with the catalog's 4.62.3 during typecheck - wasm-inlined/cf.ts: drop now-stale @ts-expect-error directives that vite 8's new '*.wasm' ambient module declaration makes unnecessary
✅ Deploy Preview for shiki-matsu ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for shiki-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1300 +/- ##
==========================================
+ Coverage 89.64% 89.71% +0.07%
==========================================
Files 79 79
Lines 3524 3539 +15
Branches 1002 1004 +2
==========================================
+ Hits 3159 3175 +16
+ Misses 328 327 -1
Partials 37 37 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
antfu
pushed a commit
to SHUBHI-KUMARI/shiki
that referenced
this pull request
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
xbetween the brackts.Description
main's CI is currently red (see thetest/typecheckjobs on thev4.4.1release push). This PR fixes it:.wasmimport (previously only.wasm?init) and tries to instantiate it as a real WebAssembly ESM module. That clashes with this repo's ownwasmPlugin()inpackages/engine-oniguruma/rollup.config.mjs, which inlinesonig.wasmas a base64ArrayBufferfor tests. Because Oniguruma's wasm declares imports from a syntheticenvmodule, Vite's built-in handling failed withCannot find package 'env', breaking most of the test matrix. Fix: mark the pluginenforce: 'pre'so it wins over Vite's core plugin (Rollup ignores the unknown field, so the real build is unaffected).sqlis now a dependency ofcpp/cpp-macro), but the snapshot tests weren't refreshed. Updated them to match.rollupversions broke typecheck. Therollupcatalog was bumped to^4.62.3, butunbuild(used bymagic-move/stream) still resolved a nestedrollup@4.62.2, so TS saw two nominally differentPlugintypes and failed onpackages/magic-move/build.config.ts. Added apnpm.overridesentry to force a single dedupedrollupversion.@ts-expect-errordirectives. Vite 8'sclient.d.tsnow declares an ambient*.wasmmodule, making two existing@ts-expect-errorcomments (inwasm-inlined.tsandpackages/shiki/test/cf.ts) unused, which itself is a type error undernoUnusedLocals-style checks. Removed/replaced with a proper cast.Verified locally:
pnpm lint,pnpm typecheck, andpnpm build && vitest run(615/615 tests) all pass.Linked Issues
fixes none (found via CI inspection, no existing issue)
Additional context
This PR was authored with the help of an AI coding agent (OpenCode), used to diagnose the failing CI run and prepare this fix.