tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.03k stars 1.27k forks source link

Fix incorrect `esm` paths in package.json for both React and Vue #988

Closed znicholasbrown closed 1 year ago

znicholasbrown commented 1 year ago

Hi 👋🏻 I was getting an error when installing v2.0.7 of Heroicons in an esm-compatible project.

The package.json has a few incorrect paths in both the vue and react modules, which is causing esm bundlers to struggle to use import statements.

Tested this fix with a local build + linking and it seems to be working appropriately for me.

RobinMalfait commented 1 year ago

Hey, thanks so much for this contribution! 🙏

Made a few small adjustments to make sure that the esm is included in the build script instead of just the final package.json files. I made a bad commit because of this because the generated file overrode your changes.

Thanks!