github.com/preactjs/pr...
github.com/vercel/next...
github.com/preactjs/pr...
github.com/vercel/next...
Next.js should change from "preserve" to "react-jsx", as it actually compiles to automatic
preact/compat should not declare the React UMD namespace
Next.js should change from "preserve" to "react-jsx", as it actually compiles to automatic
preact/compat should not declare the React UMD namespace
So who should change what?
So who should change what?
We shipped some new components which import from preact/compat and suddenly Next.js apps, which use "jsx": "preserve", have thousands of JSX errors
We shipped some new components which import from preact/compat and suddenly Next.js apps, which use "jsx": "preserve", have thousands of JSX errors
No more `import React` in every file, smaller/tree-shakable output via jsx/jsxs helpers, dev vs prod helpers (better warnings), and enables faster/leaner runtime + alternative JSX runtimes — simpler DX and better optimizations
No more `import React` in every file, smaller/tree-shakable output via jsx/jsxs helpers, dev vs prod helpers (better warnings), and enables faster/leaner runtime + alternative JSX runtimes — simpler DX and better optimizations
TypeScript understands 2 types of JSX runtimes. The classic runtime looks at the React.JSX namespace in the file. The automatic runtime looks at the JSX namespace exported from react/jsx-runtime or react/jsx-dev-runtime
TypeScript understands 2 types of JSX runtimes. The classic runtime looks at the React.JSX namespace in the file. The automatic runtime looks at the JSX namespace exported from react/jsx-runtime or react/jsx-dev-runtime
bsky.app/profile/merl...
Not a trivial change, but very happy the server can run (almost) everywhere now.
github.com/tus/tus-node...
bsky.app/profile/merl...