Skip to content

Commit

Permalink
fix: used monaco compiler options latest (#913)
Browse files Browse the repository at this point in the history
fix: Set monaco compiler options to latest
  • Loading branch information
Kevin101Zhang committed Jul 30, 2024
1 parent 221ef09 commit 3237c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/Editor/EditorComponents/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ const Editor: React.FC = (): ReactElement => {
`${primitives}}`,
'file:///node_modules/@near-lake/primitives/index.d.ts',
);

monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES2016,
target: monaco.languages.typescript.ScriptTarget.ES2018,
allowNonTsExtensions: true,
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
});
Expand Down

0 comments on commit 3237c18

Please sign in to comment.