unbuild
unbuild copied to clipboard
[stub] d.ts should import files with '.js' extension in ESM package
trafficstars
๐ Linked issue
resolve #370
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Updated DTS stub generation logic to check its module format so that it can work with ESM package.
I wanted to write test cases for this change, but there seems to be no stub-mode related tests and no idea how to write it ๐ค
๐ Checklist
- [x] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.