File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,15 @@ export default function(getConfig) {
2323 substituteResponsiveAtRules ( config ) ,
2424 substituteScreenAtRules ( config ) ,
2525 substituteClassApplyAtRules ( config , processedPlugins . utilities ) ,
26+
27+ // This quick plugin is necessary to avoid a serious performance
28+ // hit due to nodes created by postcss-js having an empty `raws`
29+ // value, and PostCSS not providing a default `raws.semicolon`
30+ // value. This turns determining what value to use there into an
31+ // O(n) operation instead of an O(1) operation.
32+ //
33+ // The latest version of PostCSS 7.x has this patched internally,
34+ // but patching from userland until we upgrade from v6 to v7.
2635 function ( root ) {
2736 root . rawCache = {
2837 colon : ': ' ,
You can’t perform that action at this time.
0 commit comments