Skip to content

Commit 060d234

Browse files
committed
Remove code obsoleted by upgrading PostCSS
1 parent f01d79f commit 060d234

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/processTailwindFeatures.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,6 @@ 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.
35-
function(root) {
36-
root.rawCache = {
37-
colon: ': ',
38-
indent: ' ',
39-
beforeDecl: '\n',
40-
beforeRule: '\n',
41-
beforeOpen: ' ',
42-
beforeClose: '\n',
43-
beforeComment: '\n',
44-
after: '\n',
45-
emptyBody: '',
46-
commentLeft: ' ',
47-
commentRight: ' ',
48-
semicolon: false,
49-
}
50-
},
5126
]).process(css, { from: _.get(css, 'source.input.file') })
5227
}
5328
}

0 commit comments

Comments
 (0)