From 6d54a0890316da4c35909db3f8de31cadabbd8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Jaca=C3=BAna?= Date: Mon, 29 Apr 2024 08:33:08 -0400 Subject: [PATCH] chore: Add JSX/TSX to rollup resolver plugin --- src/rollup/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup/config.ts b/src/rollup/config.ts index 5e7ea0c62d..5c733f9068 100644 --- a/src/rollup/config.ts +++ b/src/rollup/config.ts @@ -43,7 +43,7 @@ import { sourcemapMininify } from "./plugins/sourcemap-min"; export type RollupConfig = InputOptions & { output: OutputOptions }; export const getRollupConfig = (nitro: Nitro): RollupConfig => { - const extensions: string[] = [".ts", ".mjs", ".js", ".json", ".node"]; + const extensions: string[] = [".ts", ".mjs", ".js", ".json", ".node", ".tsx", ".jsx"]; const nodePreset = nitro.options.node === false ? unenv.nodeless : unenv.node;