alloc / vite-dts

Blazing fast plugin that generates .d.ts modules for libraries
MIT License
89 stars 15 forks source link

feat: allow using .mjs extension #8

Open rexxars opened 2 years ago

rexxars commented 2 years ago

If you define a file in the module field which has a .mjs extension, this plugin currently overwrites it with the type definitions. With this change, it instead correctly writes to .mjs.d.ts