/opt/canhelp/node_modules/next/node_modules/postcss/lib
NameSizeModeActions
at-rule.d.ts28170644editdlrm
at-rule.js4710644editdlrm
comment.d.ts17270644editdlrm
comment.js2030644editdlrm
container.d.ts131570644editdlrm
container.js105020644editdlrm
css-syntax-error.d.ts65030644editdlrm
css-syntax-error.js25240644editdlrm
declaration.d.ts37870644editdlrm
declaration.js4950644editdlrm
document.d.ts19410644editdlrm
document.js6540644editdlrm
fromJSON.d.ts1620644editdlrm
fromJSON.js15060644editdlrm
input.d.ts44240644editdlrm
input.js61900644editdlrm
lazy-result.d.ts50070644editdlrm
lazy-result.js135620644editdlrm
list.d.ts14530644editdlrm
list.js12270644editdlrm
map-generator.js95750644editdlrm
no-work-result.d.ts15730644editdlrm
no-work-result.js25510644editdlrm
node.d.ts138510644editdlrm
node.js87330644editdlrm
parse.d.ts1350644editdlrm
parse.js11470644editdlrm
parser.js147570644editdlrm
postcss.d.mts10530644editdlrm
postcss.d.ts112430644editdlrm
postcss.js28980644editdlrm
postcss.mjs9800644editdlrm
previous-map.d.ts18270644editdlrm
previous-map.js39230644editdlrm
processor.d.ts34060644editdlrm
processor.js18100644editdlrm
result.d.ts44170644editdlrm
result.js7450644editdlrm
root.d.ts22790644editdlrm
root.js12390644editdlrm
rule.d.ts26820644editdlrm
rule.js5690644editdlrm
stringifier.d.ts14110644editdlrm
stringifier.js82200644editdlrm
stringify.d.ts1650644editdlrm
stringify.js2130644editdlrm
symbols.js910644editdlrm
terminal-highlight.js13990644editdlrm
tokenize.js65380644editdlrm
warn-once.js2560644editdlrm
warning.d.ts29940644editdlrm
warning.js7390644editdlrm
Edit: /opt/canhelp/node_modules/next/node_modules/postcss/lib/root.js (1239B)
'use strict' let Container = require('./container') let LazyResult, Processor class Root extends Container { constructor(defaults) { super(defaults) this.type = 'root' if (!this.nodes) this.nodes = [] } normalize(child, sample, type) { let nodes = super.normalize(child) if (sample) { if (type === 'prepend') { if (this.nodes.length > 1) { sample.raws.before = this.nodes[1].raws.before } else { delete sample.raws.before } } else if (this.first !== sample) { for (let node of nodes) { node.raws.before = sample.raws.before } } } return nodes } removeChild(child, ignore) { let index = this.index(child) if (!ignore && index === 0 && this.nodes.length > 1) { this.nodes[1].raws.before = this.nodes[index].raws.before } return super.removeChild(child) } toResult(opts = {}) { let lazy = new LazyResult(new Processor(), this, opts) return lazy.stringify() } } Root.registerLazyResult = dependant => { LazyResult = dependant } Root.registerProcessor = dependant => { Processor = dependant } module.exports = Root Root.default = Root Container.registerRoot(Root)