ed-software / react-material-symbols

A minimalist package for adding Material Symbols to any React project.
https://www.npmjs.com/package/react-material-symbols
31 stars 6 forks source link

feat: :bug: fix compatibility with next 13 #78

Closed ed-software closed 10 months ago

ed-software commented 10 months ago

For some reason, next 13 specifically has an unexpected behaviour when importing from packages with both a "main" and a "module" fields in their package.json, and it tends to prefer to import using the path supplied with "main", which is an issue when you have a UMD JS file there instead of a ESM JS file. I don't want to remove the UMD path from "main" for the sake of compatibility with different module systems, so the best workaround I have found is to use the "exports" field.

This should close #73

vercel[bot] commented 10 months ago

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

Name Status Preview Comments Updated (UTC)
react-material-symbols ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2023 0:06am