fix(vite): babel transform being applied for non-js files (#3238)

This commit is contained in:
Marvin Hagemeister
2025-08-21 20:03:00 +02:00
committed by GitHub
parent 6dd250c520
commit 27c2910b1d
6 changed files with 40 additions and 4 deletions
+1 -4
View File
@@ -323,10 +323,7 @@ function babelTransform(
isDev: boolean;
},
) {
if (
!isJsMediaType(options.media) &&
!/^https?:\/\//.test(options.id)
) {
if (!isJsMediaType(options.media)) {
return null;
}