We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a721b13 commit f2c657aCopy full SHA for f2c657a
src/postcss/property-to-variable.js
@@ -35,7 +35,7 @@ const propertyToCssVariablePolyfill = (pluginOptions = {}) => {
35
const fallbackSelectorsAst = postcss.parse(fallbackSelectors, { from: sourceFile });
36
37
let lastImportIndex = -1;
38
- for (const node of root.nodes) {
+ for (const [i, node] of root.nodes.entries()) {
39
if (node.type === 'atrule' && node.name === 'import') {
40
lastImportIndex = i
41
}
0 commit comments