mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
Support json ESM imports
This commit is contained in:
1 file changed
+2
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user