1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/tests/testdata/publish/unsupported_jsx_tsx/foo.tsx
Bartek Iwańczuk 211b3ff244
fix(publish): print a warning when .jsx or .tsx is imported (#22631)
This commit adds a warning when .jsx or .tsx is encountered during
publishing.

This is a stop-gap solution before we fix it proper.
2024-02-29 12:54:57 +01:00

5 lines
145 B
TypeScript

import { renderToString } from "npm:preact-render-to-string";
export default function render() {
return renderToString(<div>foo.tsx</div>);
}