fuse-box / fuse-box/react-example

Why is a `transform-react-jsx` required

Offen
#5 12 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
70
Forks
36
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I was wondering why this example requires the `BabelPlugin`, since TypeScript can transpile `JSX` by itself.

Removing the plugin and using a custom `tsconfig.json` that sets `"jsx"` property to `"react"` works (at least it compiles), but the output seems to be broken. Opening the app in the browser is not possible -> `http://localhost:4444/default/index.jsx `

Is it not possible for FuseBox to compile JSX without any plugins?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.