Skip to content

Commit e92a40f

Browse files
committed
Fix playground
fixes parcel-bundler#517
1 parent ff74ae5 commit e92a40f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/playground/playground.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function loadWasm() {
3434
if (version.value === 'local') {
3535
wasm = localWasm;
3636
} else {
37-
wasm = await new Function('version', 'return import(`https://cdn.jsdelivr.net/npm/lightningcss-wasm@${version}/lightningcss_node.js`)')(version.value);
37+
wasm = await new Function('version', 'return import(`https://esm.sh/lightningcss-wasm@${version}?bundle`)')(version.value);
3838
}
3939
await wasm.default();
4040
}

0 commit comments

Comments
 (0)