webpack 5.92.0 → 5.92.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of webpack might be problematic. Click here for more details.

@@ -368,24 +368,24 @@ class CssModulesPlugin {
368
368
 
369
369
  /** @type {CssModule[] | undefined} */
370
370
  const modules = orderedCssModulesPerChunk.get(chunk);
371
- const { path: filename, info } = compilation.getPathWithInfo(
372
- CssModulesPlugin.getChunkFilenameTemplate(
373
- chunk,
374
- compilation.outputOptions
375
- ),
376
- {
377
- hash,
378
- runtime: chunk.runtime,
379
- chunk,
380
- contentHashType: "css"
381
- }
382
- );
383
- const undoPath = getUndoPath(
384
- filename,
385
- compilation.outputOptions.path,
386
- false
387
- );
388
371
  if (modules !== undefined) {
372
+ const { path: filename, info } = compilation.getPathWithInfo(
373
+ CssModulesPlugin.getChunkFilenameTemplate(
374
+ chunk,
375
+ compilation.outputOptions
376
+ ),
377
+ {
378
+ hash,
379
+ runtime: chunk.runtime,
380
+ chunk,
381
+ contentHashType: "css"
382
+ }
383
+ );
384
+ const undoPath = getUndoPath(
385
+ filename,
386
+ compilation.outputOptions.path,
387
+ false
388
+ );
389
389
  result.push({
390
390
  render: () =>
391
391
  this.renderChunk({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "5.92.0",
3
+ "version": "5.92.1",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
6
6
  "license": "MIT",