feat: support JSX automatic mode (#610)

This commit adds support for JSX automatic mode instead of the default
mode that requires the presence of the JSX pragma in each file.

This commit also adds the config file to the `fresh.gen.ts` manifest,
which is used to determine if the client emit should use automatic mode.

The minimum Deno version has also been bumped to 1.25.0.
This commit is contained in:
Luca Casonato
2022-08-26 11:03:00 +02:00
committed by GitHub
parent bbe4277acb
commit b12867a582
66 changed files with 374 additions and 213 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
/** @jsx h */
import { h } from "preact";
import { JSX } from "preact";
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
export function RoundedButton(props: JSX.HTMLAttributes<HTMLButtonElement>) {
return (
<button
style={{
-3
View File
@@ -1,6 +1,3 @@
/** @jsx h */
import { h } from "preact";
import {
CATEGORIES,
TableOfContentsCategory,
-3
View File
@@ -1,6 +1,3 @@
/** @jsx h */
import { h } from "preact";
export function NoBuild() {
return (
<svg
-3
View File
@@ -1,6 +1,3 @@
/** @jsx h */
import { h } from "preact";
const LINKS = [
{
title: "Source",
-3
View File
@@ -1,6 +1,3 @@
/** @jsx h */
import { h } from "preact";
export function IconMinus() {
return (
<svg
-3
View File
@@ -1,6 +1,3 @@
/** @jsx h */
import { h } from "preact";
export default function NavigationBar(props: { active: string }) {
const items = [
{