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

refactor(theme-common): mark package as ESM #6899

Closed
wants to merge 1 commit into from

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

To allow Jest to understand imports from this package as ESM. #6520

Have you read the Contributing Guidelines on pull requests?

Yes

@Josh-Cena Josh-Cena added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Mar 11, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Mar 11, 2022
@Josh-Cena Josh-Cena mentioned this pull request Mar 11, 2022
1 task
@Josh-Cena
Copy link
Collaborator Author

Fair, sounds like a future problem to worry about 😄

@Josh-Cena Josh-Cena closed this Mar 11, 2022
@Josh-Cena Josh-Cena deleted the jc/theme-common-esm branch March 11, 2022 11:36
@@ -8,6 +8,8 @@
"build": "node copyUntypedFiles.mjs && tsc",
"watch": "node copyUntypedFiles.mjs && tsc --watch"
},
"type": "module",
"sideEffects": false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this thing produce failures alone?

It's something I wanted to test too, as it could help with tree shaking and code splitting

Copy link
Collaborator Author

@Josh-Cena Josh-Cena Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sideEffects is good. I can send another PR to add it if it's worth it. Forgot there's an unrelated change here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants