forked from lix-project/lix-website
16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const Input = require('postcss/lib/input');
|
||
|
const ObjectParser = require('./object-parser');
|
||
|
|
||
|
function objectParse(source, opts) {
|
||
|
const input = new Input(source, opts);
|
||
|
const parser = new ObjectParser(input);
|
||
|
|
||
|
parser.parse(opts.node);
|
||
|
|
||
|
return parser.root;
|
||
|
}
|
||
|
|
||
|
module.exports = objectParse;
|