Skip to content

fix: add .d.ts for stylex babel plugin to resolve cjs export and typescript mismatch#924

Merged
nmn merged 1 commit intofacebook:mainfrom
RavenColEvol:889
Mar 4, 2025
Merged

fix: add .d.ts for stylex babel plugin to resolve cjs export and typescript mismatch#924
nmn merged 1 commit intofacebook:mainfrom
RavenColEvol:889

Conversation

@RavenColEvol
Copy link
Contributor

What changed / motivation ?

Added a temporary .d.ts file for stylex babel plugin. This overrides the output of

export default EXPORT_DEFAULT_DECLARATION

to

export = $$EXPORT_DEFAULT_DECLARATION$$;

Although this doesn't looks like a good solution. Need to find a good solution later.

Linked PR/Issues

Fixes # (issue)

Additional Context

After change types works fine
Screenshot 2025-03-03 at 10 51 01 AM

Pre-flight checklist

@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
@nmn nmn merged commit 1a1d97b into facebook:main Mar 4, 2025
7 of 8 checks passed
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.

3 participants