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.
Hi there 👋
I've noticed that while the
generate
option is documented in the plugin, it's not exposed in the Typescript's defintions.I used the type from https://github.com/sveltejs/svelte/blob/d19bcef6901768844cc89cb39d29873381f9969a/src/compiler/interfaces.ts#L111
It would be possible to change the
Options
interface to extend theCompileOptions
type from Svelte.But it could be misleading since some options are fully handled by the plugin and can't be changed (
format
,sveltePath
,css
) and I'm not sure how well it would handle Svelte v2.I'm definitely not a Typescript expert so I've used the safe way here!
Have a nice day!
PS: if it does not make sense to have the underlying options in the typescript definitions, here is a workaround.