Skip to content

Use local user css cache for apply #7524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 25, 2022
Prev Previous commit
Next Next commit
Simplify
  • Loading branch information
thecrypticace committed Feb 25, 2022
commit f5e37c6e5642143a8bb5fef78eb7bdedc2cb0d7c
9 changes: 1 addition & 8 deletions src/lib/expandApplyAtRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,7 @@ function buildLocalApplyCache(root, context) {
/** @type {ApplyCache} */
let cache = new Map()

let reservedBits = 0n
let tmp = context.layerOrder.utilities >> 3n
while (tmp > 1n) {
tmp = tmp >> 1n
reservedBits++
}

let highestOffset = 1n << reservedBits
let highestOffset = context.layerOrder.utilities >> 3n

root.walkRules((rule, idx) => {
// Ignore rules generated by Tailwind
Expand Down