css-loader 5.1.0 → 5.1.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.
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.1](https://github.com/webpack-contrib/css-loader/compare/v5.1.0...v5.1.1) (2021-03-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
5
12
|
## [5.1.0](https://github.com/webpack-contrib/css-loader/compare/v5.0.2...v5.1.0) (2021-02-25)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -17,7 +17,7 @@ function visitor(result, parsedResults, node, key) {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
if (node.raws.afterName && node.raws.afterName.trim().length > 0) {
|
|
20
|
+
if (node.raws && node.raws.afterName && node.raws.afterName.trim().length > 0) {
|
|
21
21
|
const lastCommentIndex = node.raws.afterName.lastIndexOf("/*");
|
|
22
22
|
const matched = node.raws.afterName.slice(lastCommentIndex).match(_utils.webpackIgnoreCommentRegexp);
|
|
23
23
|
|
|
@@ -70,10 +70,10 @@ function visitor(result, parsedResults, node, key) {
|
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
const parsed = (0, _postcssValueParser.default)(
|
|
73
|
+
const parsed = (0, _postcssValueParser.default)(node.raws && node.raws.value && node.raws.value.raw ? node.raws.value.raw : node[key]);
|
|
74
74
|
let inBetween;
|
|
75
75
|
|
|
76
|
-
if (
|
|
76
|
+
if (node.raws && node.raws.between) {
|
|
77
77
|
const lastCommentIndex = node.raws.between.lastIndexOf("/*");
|
|
78
78
|
const matched = node.raws.between.slice(lastCommentIndex).match(_utils.webpackIgnoreCommentRegexp);
|
|
79
79
|
|