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

fix: Fix exports = for TS types for Babel plugin #926

Closed
wants to merge 1 commit into from

Conversation

nmn
Copy link
Contributor

@nmn nmn commented Mar 3, 2025

What changed / motivation ?

fixes #889

Adds a custom file for the Typescript types for the Babel plugin. This is needed because currently the generated types are using export default however the actual code is commonJS and not ESM.

The custom type file uses exports = instead.

@facebook-github-bot facebook-github-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 Mar 3, 2025
Copy link

github-actions bot commented Mar 3, 2025

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

[email protected] size:compare
node size/compare.js /tmp/tmp.FFw2QijF1O /tmp/tmp.ZrQbJeEave

Results Base Patch Ratio
stylex/lib/stylex.js
· compressed 985 985 1.00
· minified 3,154 3,154 1.00
stylex/lib/StyleXSheet.js
· compressed 1,266 1,266 1.00
· minified 3,776 3,776 1.00
benchmarks/size/.build/bundle.js
· compressed 567,170 567,170 1.00
· minified 10,232,457 10,232,457 1.00
benchmarks/size/.build/stylex.css
· compressed 100,609 100,609 1.00
· minified 755,721 755,721 1.00

@nmn nmn closed this Mar 4, 2025
@nmn nmn deleted the fix/babel-ts-types branch March 4, 2025 21:55
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[babel-plugin] TypeScript types are wrong
3 participants