Skip to content

Conversation

@henryqdineen
Copy link
Collaborator

@henryqdineen henryqdineen commented Oct 29, 2025

What changed / motivation ?

This is not causing any issues but I noticed that the rollup config for @stylexjs/babel-plugin was not externalizing a couple packages that could be:

  • @babel/helper-module-imports
  • postcss-value-parser

This should be safe since those packages are listed as dependencies and will be installed by consumers. This will reduce bundle by ~8% and seems appropriate by following the existing pattern of externalizing third-party packages.

Note: some changes were from prettier formatting. It looks like the prettier:report script does not check .mjs files so these rollup.config.mjs files have not been formatted. Let me know if I should update prettier:report in a separate PR.

Pre-flight checklist

The `@babel/helper-module-imports` and `postcss-value-parser` packages are dependencies
of `@stylexjs/babel-plugin` so they can be externalized in the rollup build.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2025
@mellyeliu mellyeliu merged commit f3bf210 into facebook:main Oct 29, 2025
6 of 9 checks passed
hiteshshetty-dev pushed a commit to hiteshshetty-dev/stylex that referenced this pull request Nov 8, 2025
The `@babel/helper-module-imports` and `postcss-value-parser` packages are dependencies
of `@stylexjs/babel-plugin` so they can be externalized in the rollup build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

2 participants