vite-plugin-compression
vite-plugin-compression copied to clipboard
interface VitePluginCompression not exported in published package
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: https://github.com/vbenjs/vite-plugin-compression/blob/077eff37f45f12896326d687aa0e08f99b2b7a07/packages/core/src/types.ts#L6 in the packaged plugin or tweak the building process so that the generated declaration exports the interface accordingly.