Skip to content
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

interface VitePluginCompression not exported in published package #15

Open
j3n57h0m45 opened this issue Feb 3, 2022 · 0 comments
Open

Comments

@j3n57h0m45
Copy link

When building / importing the plugin the generated index.d.ts does not export the interface VitePluginCompression

// dist/index.d.ts
[...]
interface VitePluginCompression { 
[...]
export { export_default as default };

The way I see it, this means either explicitly providing the types:

export interface VitePluginCompression {
in the packaged plugin or tweak the building process so that the generated declaration exports the interface accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant