denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.05k stars 607 forks source link

Bug: JSX precompile lowercases component props #2539

Closed marvinhagemeister closed 1 week ago

marvinhagemeister commented 1 week ago
import * as MyIsands from "./some-island.tsx"

const foo = <MyIslands.Counter monthDates={2} />

is turned into:

import * as MyIsands from "./some-island.tsx"

const foo = <MyIslands.Counter monthdates={2} />

This is a bug in the precompile transform and only seems to occur with expression component names.

marvinhagemeister commented 1 week ago

Resolved by https://github.com/denoland/deno_ast/pull/258 . Will be part of the next Deno release > 1.44.4