Skip to content

Commit 0d504e4

Browse files
committed
fix(): import in parallel
1 parent 106cd63 commit 0d504e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bricks/vs/src/code-editor/workers/lintYaml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export async function lintYaml({
5959
links,
6060
markers,
6161
}: LintRequest): Promise<LintResponse> {
62-
const { parseDocument, visit } = await import("yaml");
63-
const { preevaluate, isEvaluable } = await import("@next-core/cook");
62+
const [{ parseDocument, visit }, { preevaluate, isEvaluable }] =
63+
await Promise.all([import("yaml"), import("@next-core/cook")]);
6464

6565
const lintMarkers: LintMarker[] = [];
6666
const lintDecorations: LintDecoration[] = [];

0 commit comments

Comments
 (0)