File tree 2 files changed +8
-0
lines changed
packages/components/react
src/core/CodeMirrorEditor
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 69
69
"@lezer/highlight" : " ^1.2.0" ,
70
70
"@nanostores/react" : " 0.7.2" ,
71
71
"@radix-ui/react-accordion" : " ^1.2.0" ,
72
+ "@replit/codemirror-lang-svelte" : " ^6.0.0" ,
72
73
"@tutorialkit/runtime" : " workspace:*" ,
73
74
"@tutorialkit/theme" : " workspace:*" ,
74
75
"@webcontainer/api" : " 1.2.0" ,
Original file line number Diff line number Diff line change @@ -78,6 +78,13 @@ export const supportedLanguages = [
78
78
return import ( '@codemirror/lang-wast' ) . then ( ( module ) => module . wast ( ) ) ;
79
79
} ,
80
80
} ) ,
81
+ LanguageDescription . of ( {
82
+ name : 'Svelte' ,
83
+ extensions : [ 'svelte' ] ,
84
+ async load ( ) {
85
+ return import ( '@replit/codemirror-lang-svelte' ) . then ( ( module ) => module . svelte ( ) ) ;
86
+ } ,
87
+ } ) ,
81
88
] ;
82
89
83
90
export async function getLanguage ( fileName : string ) {
You can’t perform that action at this time.
0 commit comments