From e2fa31a14766d72e95ebbbd9a9f752bbf13fa82d Mon Sep 17 00:00:00 2001 From: "Dido (Christoph Poelt)" Date: Wed, 19 Feb 2025 14:57:43 +0100 Subject: [PATCH] allow outputting sourcemaps for jsx extensions as well --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 16e5f77c..ca5d6699 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -85,7 +85,7 @@ const parseSourceMap = (map?: string | object | null) => { return typeof map === 'string' ? JSON.parse(map) : map } -const isJS = (path: string) => /\.(js|mjs|cjs)$/.test(path) +const isJS = (path: string) => /\.(jsx?|mjs|cjs)$/.test(path) const isCSS = (path: string) => /\.css$/.test(path) export class PluginContainer {