Skip to content

Commit

Permalink
fix(webpack): compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
northernCold committed May 29, 2024
1 parent 6a33b97 commit 768359a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const unpluginFactory: UnpluginFactory<Options> = (options = {}) => {
return null;
},
loadInclude(id: string) {
if (normalizeAbsolutePath(id) === normalizeAbsolutePath(tailwindcssInput))
if (tailwindcssInput && normalizeAbsolutePath(id) === normalizeAbsolutePath(tailwindcssInput))
return true;
if (id.includes("?")) return false;
return filter(id);
Expand Down

0 comments on commit 768359a

Please sign in to comment.