-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(types): extend CompileOptions
interface directly
#126
Conversation
I think you can remove the |
The |
I sent sveltejs/svelte#5321 to update |
This makes me nervous because we're now making that type existing at that path in the |
That's already been the case. Shuffling/renaming exported type interfaces should always be considered as part of semver. |
TBH I don't really like Svelte's current system of exporting types in general. Largely because of the same concerns you have. When they're auto-generated by TS, you don't have as much fine-tune control of what ends up where. A simple(r) way to resolve this in the future is to export everything from |
This is actually already a breaking change, because Given that, I'd probably be in favor of getting our exports in order in Svelte - including the types we think it makes sense to expose directly at the root, rather than from some file deep in the package - and then coming back to this, consuming the new types and making it a breaking change. I'm not sure what to do about Svelte 2. At some point we should probably drop it from this plugin, perhaps at the same time. |
We should decide what we're doing here. Would love to finally get rid of the intellisense errors that decorate all my |
#138 solves the concern re: |
Extends the
CompileOptions
directly, since everything gets passed intosvelte/compiler
anyway. Saves us from having an ongoing battle of "oh this is missing too", as we have.This is separate to (and should land after) #125
Verified that both PRs work together locally.