Skip to content

Commit

Permalink
return explicit null values for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Jan 25, 2023
1 parent 850931b commit 6c1a197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/compiler/plugins/vanillaExtractPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const vanillaExtractSideEffectsPlugin: esbuild.Plugin = {
{ filter: /\.css(\.(j|t)sx?)?(\?.*)?$/, namespace: "file" },
async (args) => {
if (args.pluginData === preventInfiniteLoop) {
return;
return null;
}

let resolvedPath = (
Expand All @@ -190,7 +190,7 @@ const vanillaExtractSideEffectsPlugin: esbuild.Plugin = {
).path;

if (!cssFileFilter.test(resolvedPath)) {
return;
return null;
}

return {
Expand Down

0 comments on commit 6c1a197

Please sign in to comment.