Repository navigation
Complete Octane parser compatibility - #12
Merged
thejackshelton merged 1 commit intoAug 14, 2026
Merged
Conversation
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.
Summary
oxc-tsrx/tsrx-core-compatsubpath from the main npm package@tsrx/corecompiler consumersRoot cause
PR #10 removed the original Octane corpus parse failures, but the released compatibility path still lacked the AST data Octane consumes. The eager native route also omitted TypeScript fields, identifier-owned TypeScript descendants were not traversed during span reconstruction, and one projected JSX comment escaped as a synthetic
EmptyStatement.The integration additionally exposed two host-boundary assumptions: native typed arrays can come from a different JavaScript realm, and Vite treats dynamic
new URL(..., import.meta.url)addon lookup as an asset glob.Impact
The public subpath now parses all 2,140 tracked Octane
.tsrxfiles with zero failures. Octane's focused compiler, source-segment, and scoped-style suites pass all 285 tests against the local package.In four warmed whole-corpus rounds on Apple arm64, the compatibility subpath averaged 786 ms versus 1,955 ms for
@tsrx/[email protected], about 2.5x faster end to end.This is a follow-up to #9 and #10.
Validation
cargo test --release --locked --offline -p tsrx_parser_enginecargo clippy --release --locked --offline -p tsrx_parser_engine -p parser_napi_binding --all-targets -- -D warningspnpm test(211/211)pnpm run test:parser-api(11/11)pnpm exec tsc -p packages/tsrx-core-compat/tsconfig.jsongit diff --check