Run Glint's transform through its standalone entry; no TypeScript 5 at runtime - #2
Merged
NullVoxPopuli merged 2 commits intoAug 25, 2026
Conversation
`@glint/ember-tsc/transform/standalone` (typed-ember/glint#1226) analyzes the script parts of a .gts file with ember-estree instead of the TypeScript JavaScript API, so the mapper no longer carries TypeScript 5 at runtime. It stays a devDependency for `lint:types` and the `CompilerOptions` type import in protocol.ts. Script parse errors now take the same path as content-tag errors: the error is reported and no transformed text is returned for the file. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FsXgxh6vNRWMCNcAQ3g6TN
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FsXgxh6vNRWMCNcAQ3g6TN
NullVoxPopuli-ai-agent
force-pushed
the
standalone-transform
branch
from
August 25, 2026 18:44
f9bca46 to
d40b01f
Compare
NullVoxPopuli
approved these changes
Aug 25, 2026
Merged
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.
Follows #1. Resolves the "Why does the mapper depend on TypeScript 5?" question from the README: it no longer does.
@glint/ember-tsc1.11.0 ships@glint/ember-tsc/transform/standalone(typed-ember/glint#1226), which analyzes the script parts of a.gtsfile with ember-estree instead of the TypeScript JavaScript API.lib/requests/transform.jsnow uses it, andtypescriptmoves fromdependenciestodevDependencies(still used bylint:typesand theCompilerOptionstype import inprotocol.ts).Script parse errors take the same path content-tag errors already did: the mapper reports the error and returns no transformed text for that file, and TypeScript 7's own parser recovers from there. Same outcome as before for content-tag failures; for the narrower class of errors that swc tolerated but oxc does not, the file used to get a degraded transform and now gets the raw-source fallback.
Verified:
pnpm test20/20 (all five test-packages under TS 7, both diagnostics-tests, unit)pnpm test:examplesboth examples typecheckpnpm lint:types, prettier cleanlib/requests/transform.jsloads zero TypeScript 5 modulesminimumReleaseAgeExcludegains@glint/ember-tsc@1.11.0andember-estree@0.8.0(both released today).🤖 Generated with Claude Code
https://claude.ai/code/session_01FsXgxh6vNRWMCNcAQ3g6TN