css-loader 5.1.3 → 5.1.4

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [5.1.4](https://github.com/webpack-contrib/css-loader/compare/v5.1.3...v5.1.4) (2021-03-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * crash with thread-loader ([#1281](https://github.com/webpack-contrib/css-loader/issues/1281)) ([7095a7c](https://github.com/webpack-contrib/css-loader/commit/7095a7ca7d985d5447aed80cf3e41a4f8c19b954))
11
+
5
12
  ### [5.1.3](https://github.com/webpack-contrib/css-loader/compare/v5.1.2...v5.1.3) (2021-03-15)
6
13
 
7
14
 
package/dist/utils.js CHANGED
@@ -89,7 +89,7 @@ function escapeLocalIdent(localident) {
89
89
  function defaultGetLocalIdent(loaderContext, localIdentName, localName, options) {
90
90
  let relativeMatchResource = ""; // eslint-disable-next-line no-underscore-dangle
91
91
 
92
- if (loaderContext._module.matchResource) {
92
+ if (loaderContext._module && loaderContext._module.matchResource) {
93
93
  relativeMatchResource = `${normalizePath( // eslint-disable-next-line no-underscore-dangle
94
94
  _path.default.relative(options.context, loaderContext._module.matchResource))}\x00`;
95
95
  }
@@ -145,7 +145,7 @@ const icssRegExp = /\.icss\.\w+$/i;
145
145
 
146
146
  function getModulesOptions(rawOptions, loaderContext) {
147
147
  const resourcePath = // eslint-disable-next-line no-underscore-dangle
148
- loaderContext._module.matchResource || loaderContext.resourcePath;
148
+ loaderContext._module && loaderContext._module.matchResource || loaderContext.resourcePath;
149
149
  let isIcss;
150
150
 
151
151
  if (typeof rawOptions.modules === "undefined") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-loader",
3
- "version": "5.1.3",
3
+ "version": "5.1.4",
4
4
  "description": "css loader module for webpack",
5
5
  "license": "MIT",
6
6
  "repository": "webpack-contrib/css-loader",