Skip to content

Commit

Permalink
fix: remove LightningCssMinimizerRspackPlugin exclude option default …
Browse files Browse the repository at this point in the history
…value
  • Loading branch information
吴震宇 committed Sep 5, 2024
1 parent e05fff8 commit cca58b2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ export const LightningCssMinimizerRspackPlugin = create(
errorRecovery: options?.minimizerOptions?.errorRecovery ?? true,
unusedSymbols: options?.minimizerOptions?.unusedSymbols ?? [],
include: include ? toFeatures(include) : undefined,
exclude: exclude
? toFeatures(exclude)
: // exclude all features, avoid downgrade css syntax when minimize
// 1048575 = Features.Empty | Features.Nesting | ... | Features.LogicalProperties
1048575,
exclude: exclude ? toFeatures(exclude) : undefined,
targets: typeof targets === "string" ? [targets] : targets,
draft: draft ? { customMedia: draft.customMedia ?? false } : undefined,
nonStandard: nonStandard
Expand Down

0 comments on commit cca58b2

Please sign in to comment.