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(react): prevent esm modules from appearing in cjs dist #1207

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Conversation

scurker
Copy link
Member

@scurker scurker commented Sep 25, 2023

It appears something in the npm changes with babel/rollup caused react-syntax-highlighter to be pulled in as a dependency in the production bundle instead of inlined. Using the cjs dist of react-syntax-highlighter should prevent this issue from occuring.

@scurker scurker requested a review from a team as a code owner September 25, 2023 17:46
@scurker scurker requested a review from a team September 25, 2023 17:46
@github-actions
Copy link
Contributor

Preview branch generated at https://fix-cjs.d1gko6en628vir.amplifyapp.com

@scurker
Copy link
Member Author

scurker commented Sep 25, 2023

There shouldn't be any component changes here as this is just fixing a build issue, so I'm going to go ahead and merge before waiting for the a11y testing to complete.

@scurker scurker merged commit 29e23f8 into develop Sep 25, 2023
@scurker scurker deleted the fix-cjs branch September 25, 2023 17:51
@github-actions
Copy link
Contributor

Preview branch generated at https://fix-cjs.d1gko6en628vir.amplifyapp.com

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.

2 participants