Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change the order of
exports
field keys to fix type resolution
As both `./min` and `.` points to the same type definition file, sometimes TypeScript will resolve the type definition file to the `./min` key as it appears first. microsoft/TypeScript#56290 (comment) While this is not incorrect behavior, it breaks compatibility with older build environments that do not support the `exports` field. (e.g. TypeScript with `moduleResolution: "node"` instead of `bundler` or `node16`), as the `./min` entry is only available through the `exports` field. Some Vue.js users are experiencing this issue: vuejs/core#9521
- Loading branch information