Conversation
|
|
||
| // ember.writeGlobalTypes(vueOptions, ts.sys.writeFile) | ||
| return ember.createEmberLanguagePlugin<string>( | ||
| // ts, |
There was a problem hiding this comment.
@machty Vue allows passing in TS as part of their API. Ember does search it by itself. Maybe not wrong to open up the API to accept TS and only search when it isn't provided?
commit: |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
Hi @gossi, is there any progress on this? If you'd like to continue with this PR, I’d be glad to accept it. Otherwise, would you mind closing it? |
|
Sorry, I totally forgot about it. Thanks for the reminder. The goal: Get type generation for ember going in oxc/rolldown environment One More TryI did in fact look into it again once more and noticed an issue. Given this input: // main.ts
import { SuperTable } from './super-table.gts'
export { SuperTable }I saw the following issue: which is even more interesting, when I logged the code for that error: export { SuperTable }From here: rolldown-plugin-dts/src/fake-js.ts Lines 303 to 305 in f4d41b3 So, we were wondering if there is some sort of "optimization" going on, that leads to a missing import statement? Another Idea: ember rolldown pluginSince I run into that issue, I came to the idea, to make a rolldown plugin for ember and then use it. Until now it is a rollup plugin with no-longer-needed compat. So getting rid of it and making it a rolldown plugin, using only the parts needed for now and using the filter mechanism to speed them up for use in rolldown. In essence it transforms I wanted to have type generation, so I used it with tsdown which comes with this plugin already, turned You can read the full story here: embroider-build/embroider#2658 Discuss the OptionsRemember the goal: Get type generation for ember going in oxc/rolldown environment That still stands. I found another way, that gives a choice for finding a good strategy. On the technical level, performance is a very important factor here, as this is what oxc is all about. Performance Considerations
With that in mind let's discuss the options. 1. ember rolldown plugin only
2. ember rolldown plugin +
|
Hello,
this is some Ember folks seeking support to generate types for Ember's Template format with
.gtsfile extension, so we can usetsdownfor building Ember addons. Ember's tooling luckily already sits on top of Volar, with an API very similar tovue-tscso we hope the integration is quite similar, too.This is a draft PR, mostly for us to exchange comments on specific parts of the code. Formally finalizing the PR is to do, first goal is to make the code to work.