Skip to content

Commit

Permalink
fix: fix transform result check for empty result
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored and aleclarson committed Jan 2, 2021
1 parent d948e74 commit 7bbe74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/transformRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export async function transformRequest(
const transformResult = await pluginContainer.transform(code, id)
if (
transformResult == null ||
(typeof transformResult === 'object' && !transformResult.code)
(typeof transformResult === 'object' && transformResult.code == null)
) {
// no transform applied, keep code as-is
isDebug &&
Expand Down

0 comments on commit 7bbe74a

Please sign in to comment.