pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.68k stars 279 forks source link

fix: add exports field for support esm #141

Closed SoYoung210 closed 8 months ago

SoYoung210 commented 1 year ago

Related PR: https://github.com/radix-ui/primitives/pull/2130

For TypeScript and Node.js to support the ECMAScript Module, the exports field must be specified. It is my understanding that the module field currently specified in package.json is a 'non-standard' field supported by webpack/rollup. (https://webpack.js.org/guides/author-libraries/#final-steps)

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cmdk-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 2:27pm