Commit a19d078
committed
fix: correct CRLF handling, JSDoc, and add negative test
- Fix \r\n producing double space: normalize CRLF to LF first, then
replace remaining \t\n\r with spaces
- Fix JSDoc: the real cause is Babel's code generator silently replacing
newlines during serialization, not browser attribute normalization
- Add negative test: component props (non-builtin tags) must preserve
\n unchanged1 parent 8745eec commit a19d078
4 files changed
Lines changed: 60 additions & 11 deletions
File tree
- compiler/packages/babel-plugin-react-compiler/src
- ReactiveScopes
- __tests__/fixtures/compiler
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
2129 | | - | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2133 | 2136 | | |
2134 | | - | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
2135 | 2143 | | |
2136 | | - | |
| 2144 | + | |
| 2145 | + | |
2137 | 2146 | | |
2138 | 2147 | | |
2139 | 2148 | | |
| |||
2162 | 2171 | | |
2163 | 2172 | | |
2164 | 2173 | | |
2165 | | - | |
2166 | | - | |
2167 | | - | |
2168 | | - | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
2169 | 2177 | | |
2170 | 2178 | | |
2171 | 2179 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments