From fba950aeb5c88b09158f8ab61289ff36c51d0a79 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 17 Jan 2026 18:48:29 -0600 Subject: [PATCH] Support json ESM imports --- src/lib/build/esmPlugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/build/esmPlugin.ts b/src/lib/build/esmPlugin.ts index c59768ff..fa2c9700 100644 --- a/src/lib/build/esmPlugin.ts +++ b/src/lib/build/esmPlugin.ts @@ -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") {