template-safe-parser.js 321 B

12345678910
  1. "use strict";
  2. const SafeParser = require("postcss-safe-parser/lib/safe-parser");
  3. const templateTokenize = require("./template-tokenize");
  4. class TemplateSafeParser extends SafeParser {
  5. createTokenizer() {
  6. this.tokenizer = templateTokenize(this.input, { ignoreErrors: true });
  7. }
  8. }
  9. module.exports = TemplateSafeParser;