mswjs / msw

Industry standard API mocking for JavaScript.
https://mswjs.io
MIT License
16k stars 522 forks source link

fix: resolve "~/core" import for .d.mts modules #2095

Closed kettanaito closed 8 months ago

kettanaito commented 8 months ago

We use a custom script that resolves the ~/core in the import paths in .d.ts files (since those won't resolve). But we miss to do that for .d.mts files, which leaves them broken.

Also added two layers of protection to prevent this issue in the future:

kettanaito commented 8 months ago

Released: v2.2.7 🎉

This has been released in v2.2.7!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.