8000 fix: Language level check for required modules · fuse-box/fuse-box@b0acc1e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit b0acc1e

Browse files
committed
fix: Language level check for required modules
1 parent 49fcbb0 commit b0acc1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/analysis/plugins/LanguageLevel.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export class LanguageLevel {
2020
// In case no target is explicitly specified in fuse.js, file.context.languageLevel defaults to ScriptTarget.ES2016
2121 // and no transpilation will be done, regardless of what is specified in tsConfig. This must be wrong?
2222
// I believe something like this is necessary.
23-
const target = ScriptTarget[file.context.tsConfig.getConfig().compilerOptions.target as string];
24-
if (file.languageLevel > target) {
23+
if (file.languageLevel > file.context.languageLevel) {
2524
file.analysis.requiresTranspilation = true;
2625
}
2726
}

0 commit comments

Comments
 (0)
0