We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 503391f commit a88fed1Copy full SHA for a88fed1
src/plugins/postcss-icss-parser.js
@@ -75,8 +75,12 @@ export default postcss.plugin(
75
76
// Replace tokens in at-rules
77
css.walkAtRules((atrule) => {
78
- // eslint-disable-next-line no-param-reassign
79
- atrule.params = replaceImportsInString(atrule.params.toString());
+ // Due reusing `ast` from `postcss-loader` some plugins may lack
+ // `params` property, we need to account for this possibility
80
+ if (atrule.params) {
81
+ // eslint-disable-next-line no-param-reassign
82
+ atrule.params = replaceImportsInString(atrule.params.toString());
83
+ }
84
});
85
86
// Replace tokens in export
0 commit comments