css-loader 5.2.6 → 5.2.7

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.
@@ -17,6 +17,10 @@ module.exports = function cssWithMappingToString(item) {
17
17
  content = _item[1],
18
18
  cssMapping = _item[3];
19
19
 
20
+ if (!cssMapping) {
21
+ return content;
22
+ }
23
+
20
24
  if (typeof btoa === "function") {
21
25
  // eslint-disable-next-line no-undef
22
26
  var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-loader",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "description": "css loader module for webpack",
5
5
  "license": "MIT",
6
6
  "repository": "webpack-contrib/css-loader",