Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @phosphor-icons/react to the import optimization list #77124

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

ccarse
Copy link

@ccarse ccarse commented Mar 14, 2025

Add @phosphor-icons/react to the import optimization list

I've been bitten by this in production one too many times.

As you can see in this thread: phosphor-icons/react#45
This is a common issue with @phosphor-icons/react.

What?

Add @phosphor-icons/react to the import optimization list

Why?

@phophor-icons/react includes thousands of files and expects to be tree shaken when used.

How?

Fixes #52646

@ijjk ijjk added Documentation Related to Next.js' official documentation. tests type: next labels Mar 14, 2025
Copy link

vercel bot commented Mar 14, 2025

Notifying the following users due to files changed in this PR based on this repo's notify modifiers:

@timneutkens, @ijjk, @shuding, @huozhi:

packages/next/src/server/config.ts

@ijjk
Copy link
Member

ijjk commented Mar 14, 2025

Allow CI Workflow Run

  • approve CI run for commit: 33d04fc

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ccarse ccarse force-pushed the @phosphor-icons/react branch from 22a8602 to 33d04fc Compare March 14, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation. tests type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: EMFILE: too many open files
2 participants