You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my next.config.js to make the tree shaking work, but that broke IconContext because it tried to import it from icons as well.
so I exported it in package.json and now I can import like so:
import { IconContext } from '@phosphor-icons/react/dist/lib/context'
I think the lib inside dist should be exported like the icons.
The text was updated successfully, but these errors were encountered:
I can add the export (I assume you mean add the relevant paths to the exports field in package.json, as the modules ARE already exported in the bundle itself). But what are they smoking at Vercel? This library should be trivially tree shakeable by a competent bundler. It works everywhere else.
I had trouble with tree shaking with next.js so I had to use
in my next.config.js to make the tree shaking work, but that broke IconContext because it tried to import it from icons as well.
so I exported it in package.json and now I can import like so:
import { IconContext } from '@phosphor-icons/react/dist/lib/context'
I think the lib inside dist should be exported like the icons.
The text was updated successfully, but these errors were encountered: