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

feat(rollup): resolve with production condition #470

Merged
merged 1 commit into from
Dec 27, 2024
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Dec 27, 2024

@rollup/plugin-node-resolve v16 enforces conditions to have at least production or development. Default is infered from NODE_ENV and if (is set and) it is not === "production" (which in many scripts is not) will become development. (more info: rollup/plugins#1823)

this PR updates plugin + uses ["production"] as the condition by default to ensure prod optimized builds (overridable by users still)

@pi0 pi0 merged commit 9dd09ee into main Dec 27, 2024
2 checks passed
@pi0 pi0 deleted the feat/resolve-prod branch December 27, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant