Replies: 1 comment 1 reply
-
In the example you mentioned does the final HTML contain |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently if tailwindcss jit scans through optimized sources generated by google closure compiler it mostly works.
There is a case when some tailwindcss classes contain characters that are replaced by closure compiler, due to it's 'trustedStrings' functionality.
A good example is data variants, where for example
data-[edit=false]
may becomedata-[edit\x3dfalse]
This happens here in the google closure compiler:
https://github.com/google/closure-compiler/blob/060e4905d3182fbaaff93449e4cf4ed787314355/src/com/google/javascript/jscomp/CodeGenerator.java#L2156
This is also the case for all clojurescript based projects as the release builds pass through the google closure compiler.
Ideally the tailwindcss jit should scan for 'safe/trusted' variants as generated by the google closure compiler too.
Relevant: thheller/shadow-cljs@5cf0ea0
Beta Was this translation helpful? Give feedback.
All reactions