diff options
Diffstat (limited to 'vanilla/node_modules/postcss/lib/document.js')
| -rw-r--r-- | vanilla/node_modules/postcss/lib/document.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vanilla/node_modules/postcss/lib/document.js b/vanilla/node_modules/postcss/lib/document.js deleted file mode 100644 index 4468991..0000000 --- a/vanilla/node_modules/postcss/lib/document.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict' - -let Container = require('./container') - -let LazyResult, Processor - -class Document extends Container { - constructor(defaults) { - // type needs to be passed to super, otherwise child roots won't be normalized correctly - super({ type: 'document', ...defaults }) - - if (!this.nodes) { - this.nodes = [] - } - } - - toResult(opts = {}) { - let lazy = new LazyResult(new Processor(), this, opts) - - return lazy.stringify() - } -} - -Document.registerLazyResult = dependant => { - LazyResult = dependant -} - -Document.registerProcessor = dependant => { - Processor = dependant -} - -module.exports = Document -Document.default = Document |
