You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh repo clone philcockfield/deno-jsr-jsx-issue
cd ./deno-jsr-jsx-issue/sample-vite
deno task install # NB: runs `deno install` with --allow-scripts to ensure the Vite plugins fully install.
deno task dev
Context
In or around the release of deno 2.2 the JSX warnings for unsupported-jsx-tsx were removed, suggesting the ability to cleanly publish JSX components from within a .tsx file of a package publishing into JSR.
The sample repo shows an error when importing into a Deno + Vite application, a JSR published module that exports a React/JSX component from a .tsx file, with no special 3rd part bundling or transpliation. Just what Deno/JSR prepares as it publishes the module.
@lucacasonato suggested this may be an issue with the "NPM tarball transpile [maybe] not working correctly for TSX."
philcockfield
changed the title
JSX/React - possible "NPM tarball transpile not working correctly for TSX"
JSX/React - "NPM tarball transpile [possibly] not working correctly for TSX"
Feb 28, 2025
philcockfield
changed the title
JSX/React - "NPM tarball transpile [possibly] not working correctly for TSX"
JSX - "NPM tarball transpile [possibly] not working correctly for TSX"
Feb 28, 2025
Minimal reproduction repo at: https://github.com/philcockfield/deno-jsr-jsx-issue
Detailed notes in README
Context
In or around the release of
deno 2.2
the JSX warnings forunsupported-jsx-tsx
were removed, suggesting the ability to cleanly publish JSX components from within a.tsx
file of a package publishing into JSR.The sample repo shows an error when importing into a
Deno + Vite
application, a JSR published module that exports a React/JSX component from a.tsx
file, with no special 3rd part bundling or transpliation. Just what Deno/JSR prepares as it publishes the module.@lucacasonato suggested this may be an issue with the "NPM tarball transpile [maybe] not working correctly for TSX."
Reproduction
Details in the README of the reproduction repo:
The text was updated successfully, but these errors were encountered: