Skip to content

Commit

Permalink
Move jsx pragmas after module doc for jsr to recognize it
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJune committed Sep 2, 2024
1 parent eac9226 commit 80dcf0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions client.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/** @jsxRuntime automatic */
/** @jsxImportSource npm:react@18 */
/** @jsxImportSourceTypes npm:@types/react@18 */
/**
* This module is meant for internal use only. It contains functions used to render the application.
* It is only expected to be imported from the `_main.tsx` file in the routes directory that is generated by the build script.
*
* @module
*/
/** @jsxRuntime automatic */
/** @jsxImportSource npm:react@18 */
/** @jsxImportSourceTypes npm:@types/react@18 */
import { lazy as reactLazy, startTransition, StrictMode } from "react";
import type { ComponentType, LazyExoticComponent } from "react";
import * as reactHelmetAsync from "react-helmet-async";
Expand Down
6 changes: 3 additions & 3 deletions error.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/** @jsxRuntime automatic */
/** @jsxImportSource npm:react@18 */
/** @jsxImportSourceTypes npm:@types/react@18 */
/**
* This module provides utilities for handling errors in a React application.
* It includes the http-error module for creating and handling HTTP errors.
*
* @module
*/
/** @jsxRuntime automatic */
/** @jsxImportSource npm:react@18 */
/** @jsxImportSourceTypes npm:@types/react@18 */
import {
ErrorResponse,
HttpError,
Expand Down
6 changes: 3 additions & 3 deletions server.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/** @jsxRuntime automatic */
/** @jsxImportSource npm:react@18 */
/** @jsxImportSourceTypes npm:@types/react@18 */
/**
* This module provides the server-side functionality for the Udibo React App framework.
* It has utilities for creating the server, rendering the application, and handling errors.
*
* @module
*/
/** @jsxRuntime automatic */
/** @jsxImportSource npm:react@18 */
/** @jsxImportSourceTypes npm:@types/react@18 */
import * as path from "@std/path";
import * as oak from "@oak/oak";
import { StrictMode } from "react";
Expand Down

0 comments on commit 80dcf0c

Please sign in to comment.