optimize parserlib by ~10%
* add skipValidation option * set `recoverable:true` on errors inside declarations
This commit is contained in:
parent
e6f94378bf
commit
6d04c0eb7d
|
@ -18,7 +18,7 @@ function parseMozFormat({code, styleId}) {
|
|||
'regexp': 'regexps',
|
||||
};
|
||||
const hasSingleEscapes = /([^\\]|^)\\([^\\]|$)/;
|
||||
const parser = new parserlib.css.Parser({starHack: true});
|
||||
const parser = new parserlib.css.Parser({starHack: true, skipValidation: true});
|
||||
const sectionStack = [{code: '', start: 0}];
|
||||
const errors = [];
|
||||
const sections = [];
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user