template-safe-parse.js 325 B

1234567891011121314
  1. "use strict";
  2. const TemplateSafeParser = require("./template-safe-parser");
  3. const Input = require("postcss/lib/input");
  4. function templateSafeParse (css, opts) {
  5. const input = new Input(css, opts);
  6. const parser = new TemplateSafeParser(input);
  7. parser.parse();
  8. return parser.root;
  9. }
  10. module.exports = templateSafeParse;