fix(vite): babel transform being applied for non-js files (#3238)
This commit is contained in:
@@ -323,10 +323,7 @@ function babelTransform(
|
||||
isDev: boolean;
|
||||
},
|
||||
) {
|
||||
if (
|
||||
!isJsMediaType(options.media) &&
|
||||
!/^https?:\/\//.test(options.id)
|
||||
) {
|
||||
if (!isJsMediaType(options.media)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user