Skip to content

Commit 54cfc00

Browse files
authored
fix: esbuild plugin converter with empty JS files. (#516)
1 parent 14ec6a0 commit 54cfc00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/optimizer/pluginConverter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function createLoadHandler(
275275
if (
276276
(result.warnings && result.warnings.length > 0) ||
277277
(result.watchDirs && result.watchDirs.length > 0) ||
278-
!result.contents
278+
result.contents == null
279279
) {
280280
throw new Error('not implemented')
281281
}

0 commit comments

Comments
 (0)