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 constant value import #5297

Merged
merged 1 commit into from
Aug 5, 2021
Merged

fix: fix constant value import #5297

merged 1 commit into from
Aug 5, 2021

Conversation

Josh-Cena
Copy link
Collaborator

@Josh-Cena Josh-Cena commented Aug 5, 2021

Motivation

The only non-typing code change in #5284 caused process to be in client code bundle.

Realized that all the other code that use @docusaurus/core/lib/constants are server-side plugins, and turns out that requiring this module in theme would make the entire core bundle to appear in client...

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

The preview should work as intended.

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
@netlify
Copy link

netlify bot commented Aug 5, 2021

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: d9da85b

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/610bddd72b266600084a8933

😎 Browse the preview: https://deploy-preview-5297--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Aug 5, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 86
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5297--docusaurus-2.netlify.app/

@slorber
Copy link
Collaborator

slorber commented Aug 5, 2021

yes, it's not exactly the same file for client/server, we added the client-side constants later 🤪

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 5, 2021
@slorber slorber merged commit 780e924 into facebook:master Aug 5, 2021
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: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants