From e969857659bad8dcfe01c9b2855d35517e7c6242 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 23 Jul 2021 07:35:50 -0400 Subject: [PATCH] Revert "Fix issue where base styles not generated for translate transforms in JIT (#5038)" This reverts commit a76fb7fb148e3af52d2186b2465da269140dffbd. --- src/plugins/translate.js | 10 ++-------- tests/jit/basic-usage.test.css | 4 ---- tests/jit/relative-purge-paths.test.css | 4 ---- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/plugins/translate.js b/src/plugins/translate.js index d34a68325f26..9d81ac312b51 100644 --- a/src/plugins/translate.js +++ b/src/plugins/translate.js @@ -5,14 +5,8 @@ export default function () { if (config('mode') === 'jit') { return createUtilityPlugin('translate', [ [ - [ - 'translate-x', - [['@defaults transform', {}], '--tw-translate-x', ['transform', 'var(--tw-transform)']], - ], - [ - 'translate-y', - [['@defaults transform', {}], '--tw-translate-y', ['transform', 'var(--tw-transform)']], - ], + ['translate-x', ['--tw-translate-x', ['transform', 'var(--tw-transform)']]], + ['translate-y', ['--tw-translate-y', ['transform', 'var(--tw-transform)']]], ], ])({ config, ...rest }) } else { diff --git a/tests/jit/basic-usage.test.css b/tests/jit/basic-usage.test.css index c610a3bcb59a..f6069311ac60 100644 --- a/tests/jit/basic-usage.test.css +++ b/tests/jit/basic-usage.test.css @@ -1,7 +1,3 @@ -.translate-x-5, -.-translate-x-4, -.translate-y-6, -.-translate-x-3, .rotate-3, .skew-y-12, .skew-x-12, diff --git a/tests/jit/relative-purge-paths.test.css b/tests/jit/relative-purge-paths.test.css index bc32fb75a901..e5ffdabd8add 100644 --- a/tests/jit/relative-purge-paths.test.css +++ b/tests/jit/relative-purge-paths.test.css @@ -1,7 +1,3 @@ -.translate-x-5, -.-translate-x-4, -.translate-y-6, -.-translate-x-3, .rotate-3, .skew-y-12, .skew-x-12,