Open sooraj-shukla opened 3 days ago
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer
Could someone please take a look at this small change and suggest me if there is something else that I should do so that this gets merged? It's solving an existing issue in next/font
due to which few people are not able to create next.js libraries where using font is required, for example, a theme library.
What?
In the current canary version of Next.js, importing Next.js fonts in any buildable Next.js library is not supported. Attempting to do so will result in a build failure, with an error indicating that the fonts are not exported from the package. I've created a fresh repository where the issue can be reproduced by following the instructions in the README.
Why?
There are following use cases of having a buildable library
How?
The barrel files in
next/fonts
didn't export the fonts which was the root cause of the issue.Fixes #51476