Maintain PostCSS node sources (#5249)
This commit is contained in:
parent
d13b0e1085
commit
ca1a167a83
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ module.exports = function nesting(opts = postcssNested) {
|
|||
})
|
||||
|
||||
root.walkAtRules('apply', (rule) => {
|
||||
rule.before(postcss.decl({ prop: '__apply', value: rule.params }))
|
||||
rule.before(postcss.decl({ prop: '__apply', value: rule.params, source: rule.source }))
|
||||
rule.remove()
|
||||
})
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ module.exports = function nesting(opts = postcssNested) {
|
|||
postcss([plugin]).process(root, result.opts).sync()
|
||||
|
||||
root.walkDecls('__apply', (decl) => {
|
||||
decl.before(postcss.atRule({ name: 'apply', params: decl.value }))
|
||||
decl.before(postcss.atRule({ name: 'apply', params: decl.value, source: decl.source }))
|
||||
decl.remove()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue