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

feat: remove unnecessary monaco-editor packages and upgrade @monaco-editor/react #7939

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Aug 28, 2024

This reduces the total install size of payload from 115 MB to 34 MB.

We never used monaco-editor within payload - we were only using @monaco-editor/react which is a lot smaller.

Since we expose its types to the end user, we have to add it to our dependencies, not devDependencies.

Before: https://npmgraph.js.org/?q=payload@3.0.0-canary.1a675ae#select=exact%3Apayload%403.0.0-canary.1a675ae&zoom=w

After: https://npmgraph.js.org/?q=payload%403.0.0-canary.cdb9474#zoom=h&select=exact%3Apayload%403.0.0-canary.cdb9474

@AlessioGr AlessioGr enabled auto-merge (squash) August 28, 2024 23:23
@AlessioGr AlessioGr merged commit e375f6e into beta Aug 28, 2024
58 checks passed
@AlessioGr AlessioGr deleted the feat/remove-upgrade-monaco-editor branch August 28, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant