Commit b8c6f9f
committed
fix: add empty transform to vite scan plugin for Vite 7.0+ compatibility
Fixes #19376 - Cannot read properties of undefined (reading 'call')
- Added empty transform() function to @tailwindcss/vite:scan plugin
- Returns null to tell Vite to skip transformation for this plugin
- Prevents undefined error when Vite 7.0+ tries to call plugin.transform.call()
- Maintains backward compatibility with older Vite versions1 parent 9e436f7 commit b8c6f9f
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
0 commit comments