NullVoxPopuli
NullVoxPopuli
Demo: - https://stackblitz.com/edit/stackblitz-starters-cj9ass?file=README.md - https://stackblitz.com/edit/stackblitz-starters-g58nhp?file=README.md - this one tries moduleResolution Node16 and module Node16
Generally, why my idea of "just tossing .gts in as 'part of the file name'" won't work: - https://discord.com/channels/480462759797063690/568935504288940056/1171838869914779659
Made a tool to help out: https://github.com/NullVoxPopuli/fix-bad-declaration-output
correct, however, @dfreeman mentioned that if someone imports a file with the extension in one place, but then without the extension in another place, then you can't have the import...
exactly, which is why I don't think we need a flag, which is a disagreement, which is why I'm working around the problem right now, because I feel stuck with...
It's just that no one using gts in their imports (everyone with v2 addons using @embroider/addon-dev@4+) has working code / declarations (without additional non-glint post-processing) -- so there is nothing...
> I don't see how leaving Glint broken is preferable to introducing a flag Not really a choice, i did attempt to fix the problem, but i couldn't figure it...
Here is how I'm fixing this: https://github.com/NullVoxPopuli/fix-bad-declaration-output easiest, quickest, we can all move forward 🎉 example usage: https://github.com/universal-ember/ember-primitives/blob/main/ember-primitives/rollup.config.mjs#L34-L52
Eventually, that'd be ideal, yea. I couldn't figure out how to get tsc to be ok with await import though :( (tsc kept changing it to require) I also don't...
Potentially solved by: https://github.com/typed-ember/glint/pull/696