Skip to content

Commit fc1b3cc

Browse files
committed
change compilerOptions (es2020)
1 parent 043a264 commit fc1b3cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/editor/src/runtime/editor/compilerOptions.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function getDefaultSandboxCompilerOptions(
3737
noUnusedLocals: false,
3838
noUnusedParameters: false,
3939

40+
allowSyntheticDefaultImports: false,
4041
esModuleInterop: false,
4142
preserveConstEnums: false,
4243
removeComments: false,
@@ -48,13 +49,14 @@ export function getDefaultSandboxCompilerOptions(
4849

4950
importHelpers: false,
5051

51-
experimentalDecorators: true,
52-
emitDecoratorMetadata: true,
52+
experimentalDecorators: false,
53+
emitDecoratorMetadata: false,
5354
moduleResolution: typescript.ModuleResolutionKind.NodeJs,
5455

55-
target: typescript.ScriptTarget.ES2017,
56+
target: typescript.ScriptTarget.ES2020,
5657
jsx: typescript.JsxEmit.React,
5758
module: typescript.ModuleKind.AMD,
59+
// typeRoots: ["node_modules/@types"],
5860
};
5961

6062
return settings;

0 commit comments

Comments
 (0)