8000 fix: resolve autoimport when target is server · fuse-box/fuse-box@474e953 · 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 474e953

Browse files
eddywnchanged
authored andcommitted
fix: resolve autoimport when target is server
1 parent 489fb29 commit 474e953

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/WorkflowContext.ts

Lines changed: 4 additions & 4 deletions
< 9B3F div data-testid="neutral diffstat" class="DiffSquares-module__diffSquare--h5kjy DiffSquares-module__neutral--VlyoP">
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ export class WorkFlowContext {
423423
public initAutoImportConfig(userNatives, userImports) {
424424
if (this.target !== "server") {
425425
this.autoImportConfig = registerDefaultAutoImportModules(userNatives);
426-
if (utils.isPlainObject(userImports)) {
427-
for (let varName in userImports) {
428-
this.autoImportConfig[varName] = new AutoImportedModule(varName, userImports[varName]);
429-
}
426+
}
427+
if (utils.isPlainObject(userImports)) {
428+
for (let varName in userImports) {
429+
this.autoImportConfig[varName] = new AutoImportedModule(varName, userImports[varName]);
430430
}
431431
}
432432
}

0 commit comments

Comments
 (0)
0