We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c630e9 commit cb3f28cCopy full SHA for cb3f28c
packages/@tailwindcss-upgrade/src/migrate-js-config.ts
@@ -341,10 +341,10 @@ function removeUnnecessarySpacingKeys(
341
let [multiplier, unit] = splitNumberAndUnit(value as string)
342
if (multiplier === null) continue
343
344
- if (!isValidSpacingMultiplier(multiplier)) continue
+ if (!isValidSpacingMultiplier(key)) continue
345
if (unit !== spacingUnit) continue
346
347
- if (parseFloat(multiplier) === parseFloat(multiplier) * parseFloat(spacingMultiplier)) {
+ if (parseFloat(multiplier) === Number(key) * parseFloat(spacingMultiplier)) {
348
delete resolvedConfig.theme.spacing[key]
349
designSystem.theme.clearNamespace(escape(`--spacing-${key.replaceAll('.', '_')}`), 0)
350
}
0 commit comments