vite-plugin-compression icon indicating copy to clipboard operation
vite-plugin-compression copied to clipboard

interface VitePluginCompression not exported in published package

Open j3n57h0m45 opened this issue 4 years ago • 0 comments

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.

j3n57h0m45 avatar Feb 03 '22 08:02 j3n57h0m45