Skip to content

Commit

Permalink
fix(webpack): fix error when cacheProvider is undefined (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
malash committed Dec 20, 2021
1 parent 6050a3b commit c1fa32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function loader(
.then((cacheInstance) => cacheInstance.set(this.resourcePath, cssText))
.then(() => {
const request = `${outputFilename}!=!${outputCssLoader}?cacheProvider=${encodeURIComponent(
cacheProvider
cacheProvider ?? ''
)}!${this.resourcePath}`;
const stringifiedRequest = loaderUtils.stringifyRequest(this, request);

Expand Down

0 comments on commit c1fa32d

Please sign in to comment.