perf(CodeEditor): lazy load all languages - #6909
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 4b08396 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
jsulpis
force-pushed
the
codemirror-perf
branch
from
September 11, 2026 16:24
edf2821 to
3c7b76c
Compare
jsulpis
force-pushed
the
codemirror-perf
branch
from
September 14, 2026 08:52
3c7b76c to
da15980
Compare
jsulpis
force-pushed
the
codemirror-perf
branch
from
September 14, 2026 12:32
da15980 to
cfed4e3
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6909 +/- ##
==========================================
- Coverage 90.97% 83.73% -7.25%
==========================================
Files 572 48 -524
Lines 10532 744 -9788
Branches 3798 204 -3594
==========================================
- Hits 9582 623 -8959
+ Misses 950 121 -829 see 524 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
jsulpis
force-pushed
the
codemirror-perf
branch
from
September 14, 2026 13:01
cfed4e3 to
d9f6dd2
Compare
philibea
reviewed
Sep 15, 2026
lisalupi
approved these changes
Sep 15, 2026
jsulpis
force-pushed
the
codemirror-perf
branch
from
September 17, 2026 08:22
d9f6dd2 to
4f539e0
Compare
jsulpis
force-pushed
the
codemirror-perf
branch
from
September 17, 2026 08:54
4f539e0 to
4b08396
Compare
philibea
approved these changes
Sep 17, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CodeEditorpreviously bundled every language grammar (total ~530kB minzipped) via@uiw/codemirror-extensions-langs.Now languages are lazy-loaded on demand:
@codemirror/language-dataresolves languages by extension andimport()s them only when used.nix,svelte,solidity(missing from language-data) added via@replit/codemirror-lang-*.extensionsis now a typedLanguageNameunion; unknown values fall back tosh(unchanged).Dropped
@uiw/codemirror-extensions-langsand updated the renovate CodeMirror matcher.Note: the only functional change should be that the
pythonextension is no longer recognized (other python extensions likepyorpywstill work). It was mapped by@uiw/codemirror-extensions-langsbut it's not in@codemirror/language-data. I checked in the console that only.pyis used.How to test
Baseline in prod:
Lazy-load in preview:
You can check the
solidity,nixandsveltelanguages that are loaded differently from the others