File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/jsx-explorer/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,13 @@ window.init = () => {
4242 monaco . languages . typescript . typescriptDefaults . setCompilerOptions ( {
4343 allowJs : true ,
4444 allowNonTsExtensions : true ,
45- lib : [ ] ,
46- jsx : monaco . languages . typescript . JsxEmit . React ,
45+ jsx : monaco . languages . typescript . JsxEmit . Preserve ,
4746 target : monaco . languages . typescript . ScriptTarget . Latest ,
48- typeRoots : [ 'node_modules/@types' ] ,
4947 } ) ;
5048
5149 const editor = monaco . editor . create ( document . getElementById ( 'source' ) ! , {
5250 value : decodeURIComponent ( window . location . hash . slice ( 1 ) ) || localStorage . getItem ( 'state' ) || 'const App = () => <div>Hello World</div>' ,
53- language : 'javascript ' ,
51+ language : 'typescript ' ,
5452 tabSize : 2 ,
5553 ...sharedEditorOptions ,
5654 } ) ;
You can’t perform that action at this time.
0 commit comments