Skip to content

Commit 00558b6

Browse files
refactor(remix-dev/vite): remove redundant jsx and typescript Babel plugins (#7998)
Co-authored-by: Mark Dalgleish <[email protected]>
1 parent e536f54 commit 00558b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/remix-dev/vite/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
10491049
},
10501050
{
10511051
name: "remix-react-refresh-babel",
1052-
enforce: "post",
1052+
enforce: "post", // jsx and typescript (in ts, jsx, tsx files) are already transpiled by vite
10531053
async transform(code, id, options) {
10541054
if (viteCommand !== "serve") return;
10551055
if (id.includes("/node_modules/")) return;
@@ -1069,7 +1069,6 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
10691069
parserOpts: {
10701070
sourceType: "module",
10711071
allowAwaitOutsideFunction: true,
1072-
plugins: ["jsx", "typescript"],
10731072
},
10741073
plugins: [[require("react-refresh/babel"), { skipEnvCheck: true }]],
10751074
sourceMaps: true,

0 commit comments

Comments
 (0)