Support json ESM imports

This commit is contained in:
Alex Gleason committed 2026-01-17 18:48:29 -06:00
1 parent a047f913b4
commit fba950aeb5
1 file changed
+2
+2
View File
@@ -430,6 +430,8 @@ export function esmPlugin(options: EsmPluginOptions): Plugin {
if (contentType) {
if (contentType === "application/javascript") {
loader = "js";
} else if (contentType === "application/json") {
loader = "json";
} else if (contentType === "text/css") {
loader = "css";
} else if (contentType === "application/wasm") {