Skip to content

Commit

Permalink
fix: add .tsx and .jsx to node-resolve extensions (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorjacauna authored Apr 29, 2024
1 parent 1e506ac commit d2c0d74
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 d2c0d74

Please sign in to comment.