unimport
unimport copied to clipboard
Support for Astro JS
Describe the feature
I have tried using unimport with Astro JS. The plugin works perfectly well in .js(x)- and .ts(x)-files, but not in .astro-files. It simply says X is not defined. I have tried investigating the issue, but I have been unable to find and explanation thus far. Maybe someone else will be able to implement a solution.
Additional information
- [X] Would you be willing to help implement this feature?
You can just configure the include option to add .astro:
https://github.com/unjs/unimport/blob/b1f1d33d6a26e16857315818e84b6f345e12ef0d/src/unplugin.ts#L9-L23