Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Oct 13, 2022
1 parent 0880c66 commit 67242b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin/webpack/src/util/rendererTypeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const isLocalWindow = (entry: WebpackPluginEntryPoint): entry is WebpackP
};

export const isPreloadOnly = (entry: WebpackPluginEntryPoint): entry is WebpackPluginEntryPointPreloadOnly => {
return !(entry as any).html && !(entry as any).js && !(entry as any).preload;
return !(entry as any).html && !(entry as any).js && !!(entry as any).preload;
};

export const isNoWindow = (entry: WebpackPluginEntryPoint): entry is WebpackPluginEntryPointNoWindow => {
Expand Down

0 comments on commit 67242b5

Please sign in to comment.