mathe42 / vite-plugin-comlink

Use WebWorkers in Vite with comlink!
MIT License
170 stars 18 forks source link

Fix types import issue introduced in v4 #121

Closed Tsury closed 9 months ago

Tsury commented 9 months ago

With the (blessed) introduction of v4, adding this to vite-env.d.ts stopped working: /// <reference types="vite-plugin-comlink/client" />

It does not lead to the client.d.ts file that sits in the package root.

Adding the export in the packages.json file solves it.

Happy New Year and thanks for v4 🎉

mathe42 commented 9 months ago

Fixed