mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Treat wasm import as binary, remove nonstandard import attribute on esbuild.wasm
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -426,6 +426,8 @@ export function esmPlugin(options: EsmPluginOptions): Plugin {
|
||||
loader = "js";
|
||||
} else if (contentType === "text/css") {
|
||||
loader = "css";
|
||||
} else if (contentType === "application/wasm") {
|
||||
loader = "binary";
|
||||
} else {
|
||||
loader = "text";
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import type _ESBuild from "esbuild-wasm";
|
||||
import wasmUrl from "esbuild-wasm/esbuild.wasm?url" with { type: "url" };
|
||||
import wasmUrl from "esbuild-wasm/esbuild.wasm?url";
|
||||
|
||||
type ESBuild = typeof _ESBuild;
|
||||
|
||||
|
||||
Reference in new issue
Block a user