mirror of https://github.com/vuejs/core.git
magic-string's trim method uses a regex check for aborting which turns out to be extremely expensive - it cna take up to 10% time in total SFC compilation! The usage here is purely aesthetic so simply removing it for a big perf gain is well worth it. |
||
---|---|---|
.. | ||
__snapshots__ | ||
compileScript | ||
fixture | ||
compileScript.spec.ts | ||
compileStyle.spec.ts | ||
compileTemplate.spec.ts | ||
cssVars.spec.ts | ||
parse.spec.ts | ||
rewriteDefault.spec.ts | ||
templateTransformAssetUrl.spec.ts | ||
templateTransformSrcset.spec.ts | ||
templateUtils.spec.ts | ||
utils.ts |