lix-website/themes/lix/assets/bootstrap/node_modules/@stylelint/postcss-css-in-js/template-safe-parse.js
2024-04-26 22:49:34 -06:00

20 lines
442 B
JavaScript

'use strict';
const Input = require('postcss/lib/input');
const TemplateSafeParser = require('./template-safe-parser');
function templateSafeParse(css, opts) {
const input = new Input(css, opts);
input.quasis = opts.quasis;
input.templateLiteralStyles = opts.templateLiteralStyles;
input.parseOptions = opts;
const parser = new TemplateSafeParser(input);
parser.parse();
return parser.root;
}
module.exports = templateSafeParse;