Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 6f2b4ed

Browse files
committed
fix(plugins/plugin-wskflow): wskflow's dynamic import of jquery and ELK
fixes #3397
1 parent 4e96060 commit 6f2b4ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/plugin-wskflow/src/lib/graph2doms.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export default async function graph2doms(
5353
}
5454
} = {}
5555
): Promise<Response> {
56-
const [d3, $, ELK] = await Promise.all([import('d3'), import('jquery'), import('elkjs/lib/elk.bundled.js')])
56+
const [d3, { default: $ }, { default: ELK }] = await Promise.all([
57+
import('d3'),
58+
import('jquery'),
59+
import('elkjs/lib/elk.bundled.js')
60+
])
5761

5862
const maxLabelLength: number = (JSONgraph.properties && JSONgraph.properties.maxLabelLength) || defaultMaxLabelLength
5963
const defaultFontSize: string = (JSONgraph.properties && JSONgraph.properties.fontSize) || '7px'

0 commit comments

Comments
 (0)