Skip to content

lk-umetsu/tailwind-ruby-heredoc-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tailwindcss-ruby heredoc issue

Reproduces an issue in tailwindcss-ruby v4.2.0 where class names inside Ruby heredoc interpolation (#{...}) are not scanned, while the same pattern in regular strings works fine.

def width_class_heredoc(width = nil)
  <<~STYLE_CLASS
    inline-flex
    #{width || 'w-100'}
  STYLE_CLASS
end

Reproduce

tailwindcss v4.2.0

chmod +x run.sh && ./run.sh
---- compile result ---
w-100 (heredoc)     : not found  # bug: should be found
w-99 (interpolation): found
w-98 (plain)        : found

tailwindcss v4.1.16

git fetch
git checkout v-4-1-16
chmod +x run.sh && ./run.sh
---- compile result ---
w-100 (heredoc)     : found
w-99 (interpolation): found
w-98 (plain)        : found

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors