Glint V2 is a major refactor of Glint V1 to run atop the Volar.js language tooling framework, which powers the language tooling for Vue and many others.
At the time of writing, the only component formats supported by Glint 2 are .gts/.gjs components; classic two-file (.ts/.js file + .hbs) components are not yet supported (neither class Ember components or nor Glimmer components), but support for these "classic" components is coming soon.
TODO: link to roadmap here.
- BREAKING CHANGE: closer unification with vanilla
tsc
glint
is now a much more thin wrapper aroundtsc
and requires a number of changes to the arguments passed to it to accomplish typical tasks- When in doubt, think in terms of what args
tsc
would need in order to accomplish a similar task, and pass those same args toglint
- to type-check your code
- before:
glint
- after:
glint --noEmit
- before:
- to build
.d.ts
declaration files for your .gts/.ts files- before:
glint --build
- after:
glint --declaration --emitDeclarationOnly
- before:
- When in doubt, think in terms of what args
- BREAKING CHANGE:
basename.gts.d.ts
files emitted instead ofbasename.d.ts
- See discussion: #628
- Previously a
basename.gts
would emit a correspondingbasename.d.ts
file. For v2 glint,basename.gts.d.ts
is emitted.