Layer names and other string props were written into JSX attributes verbatim. A `"` closed the attribute and let the rest of the name add props or expression containers, which `render` and `replace` then evaluate. Sucrase also decodes `&` entities in attribute strings, so names containing entities changed on a round trip. Strings containing `"` or `&` are now written as expression containers holding a JavaScript string literal. Tailwind JSX export uses the same helper for `data-name` and `className`. |
||
|---|---|---|
| .. | ||
| component | ||
| builders.test.ts | ||
| export.test.ts | ||
| gaps.test.ts | ||
| grid-layout.test.ts | ||
| instance-sizing.test.ts | ||
| reference.test.ts | ||
| render-tree.test.ts | ||
| scalar-variables.test.ts | ||
| schema.test.ts | ||
| tailwind.test.ts | ||
| text-props.test.ts | ||