Skip to content

Commit

Permalink
perf: disable JIT opacity prefix feature
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Dec 12, 2021
1 parent 06d4074 commit e2d9673
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli/core/ClassnamesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,12 @@ export class ClassnamesGenerator {
}
});

// Add the opacities short hand suffix `/{opacity}`: "bg-red-100/50"
const classnamesWithColorsAndOpacitySuffix = Object.keys(
this._configParser.getTheme().opacity,
).flatMap(op => classnamesWithColors.map(cls => cls + '/' + op));
// // Add the opacities short hand suffix `/{opacity}`: "bg-red-100/50"
// const classnamesWithColorsAndOpacitySuffix = Object.keys(
// this._configParser.getTheme().opacity,
// ).flatMap(op => classnamesWithColors.map(cls => cls + '/' + op));

return classnamesWithColors.concat(classnamesWithColorsAndOpacitySuffix);
return classnamesWithColors;
};

private getGeneratedClassesWithOpacities = (): ClassesWithOpacities => {
Expand Down

0 comments on commit e2d9673

Please sign in to comment.