Skip to content

Commit 214250a

Browse files
committed
fix: force yoga.wasm to be loaded as a file resource
it turns out that `yoga-wasm-web` does something silly with the way it loads the wasm; rather than a simple `import('./yoga.wasm')` it does some gymnastics that include a `readFile`, thus assuming the wasm is a file, not a more general module. so this change adds a webpack rule that forces just yoga.wasm to be treated as a file resource.
1 parent 2d8ba9b commit 214250a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: plugins/plugin-codeflare-dashboard/package.json

+9
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,14 @@
3535
"pretty-bytes": "^6.1.0",
3636
"pretty-ms": "^8.0.0",
3737
"strip-ansi": "^7.0.1"
38+
},
39+
"kui": {
40+
"webpack": {
41+
"rules": {
42+
"file-loader": [
43+
"yoga\\.wasm$"
44+
]
45+
}
46+
}
3847
}
3948
}

0 commit comments

Comments
 (0)