Skip to content

Commit

Permalink
fix: add .tsx and .jsx to node-resolve extensions (nitrojs#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorjacauna authored and pi0 committed Apr 29, 2024
1 parent 7221784 commit 1744bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1744bdb

Please sign in to comment.