css-loader
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [5.1.1](https://github.com/webpack-contrib/css-loader/compare/v5.1.0...v5.1.1) (2021-03-01) | ||
### Bug Fixes | ||
* crash on modified AST from `postcss-loader` ([#1268](https://github.com/webpack-contrib/css-loader/issues/1268)) ([d2a1a84](https://github.com/webpack-contrib/css-loader/commit/d2a1a84afc63fdfb2a4ce6668ed9f2d7f1ba56ca)) | ||
## [5.1.0](https://github.com/webpack-contrib/css-loader/compare/v5.0.2...v5.1.0) (2021-02-25) | ||
@@ -7,0 +14,0 @@ |
@@ -20,3 +20,3 @@ "use strict"; | ||
if (node.raws.afterName && node.raws.afterName.trim().length > 0) { | ||
if (node.raws && node.raws.afterName && node.raws.afterName.trim().length > 0) { | ||
const lastCommentIndex = node.raws.afterName.lastIndexOf("/*"); | ||
@@ -23,0 +23,0 @@ const matched = node.raws.afterName.slice(lastCommentIndex).match(_utils.webpackIgnoreCommentRegexp); |
@@ -73,6 +73,6 @@ "use strict"; | ||
const parsed = (0, _postcssValueParser.default)(typeof node.raws.value === "undefined" ? node[key] : node.raws.value.raw); | ||
const parsed = (0, _postcssValueParser.default)(node.raws && node.raws.value && node.raws.value.raw ? node.raws.value.raw : node[key]); | ||
let inBetween; | ||
if (typeof node.raws.between !== "undefined") { | ||
if (node.raws && node.raws.between) { | ||
const lastCommentIndex = node.raws.between.lastIndexOf("/*"); | ||
@@ -79,0 +79,0 @@ const matched = node.raws.between.slice(lastCommentIndex).match(_utils.webpackIgnoreCommentRegexp); |
{ | ||
"name": "css-loader", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "css loader module for webpack", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
127724