Skip to content

Commit b23f0ab

Browse files
authored
changed node#moveTo ==> container#append to use node 8.X.X
1 parent f3e3d9e commit b23f0ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = postcss.plugin('postcss-css-variables', function(options) {
104104
prop: variableName,
105105
value: variableValue
106106
});
107-
varDecl.moveTo(variableRootRule);
107+
variableRootRule.append(varDecl);
108108

109109
// Add the entry to the map
110110
prevVariableMap[variableName] = (prevVariableMap[variableName] || []).concat({
@@ -151,7 +151,7 @@ module.exports = postcss.plugin('postcss-css-variables', function(options) {
151151
splitOutRule.parent = decl.parent.parent;
152152

153153
var declClone = decl.clone();
154-
declClone.moveTo(splitOutRule);
154+
splitOutRule.append(declClone);
155155

156156
var prop = decl.prop;
157157
map[prop] = (map[prop] || []).concat({

0 commit comments

Comments
 (0)