Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 9ea6cec

Browse files
committed
Update import map
1 parent 2992cd5 commit 9ea6cec

20 files changed

+32
-29
lines changed

framework/react/anchor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
useCallback,
88
useEffect,
99
useMemo,
10-
} from 'https://esm.sh/react'
10+
} from 'react'
1111
import util from '../../shared/util.ts'
1212
import events from '../core/events.ts'
1313
import { redirect } from '../core/redirect.ts'

framework/react/bootstrap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ComponentType, createElement } from 'https://esm.sh/react'
2-
import { hydrate, render } from 'https://esm.sh/react-dom'
1+
import { ComponentType, createElement } from 'react'
2+
import { hydrate, render } from 'react-dom'
33
import { importModule, trimModuleExt } from '../core/module.ts'
44
import { RouteModule, Routing, RoutingOptions } from '../core/routing.ts'
55
import { loadPageDataFromTag } from './pagedata.ts'

framework/react/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createContext } from 'https://esm.sh/react'
1+
import { createContext } from 'react'
22
import type { RouterURL } from '../../types.ts'
33
import { createBlankRouterURL } from '../core/routing.ts'
44
import { createNamedContext } from './helper.ts'

framework/react/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, createElement, CSSProperties } from 'https://esm.sh/react'
1+
import { Component, createElement, CSSProperties } from 'react'
22

33
export class ErrorBoundary extends Component {
44
state: { error: Error | null }

framework/react/head.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
useContext,
99
useEffect,
1010
useMemo
11-
} from 'https://esm.sh/react'
11+
} from 'react'
1212
import util from '../../shared/util.ts'
1313
import { SSRContext } from './context.ts'
1414
import Script from './script.ts'

framework/react/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createContext } from 'https://esm.sh/react'
1+
import { createContext } from 'react'
22
import util from '../../shared/util.ts'
33

44
const REACT_FORWARD_REF_TYPE = util.supportSymbolFor ? Symbol.for('react.forward_ref') : 0xead0

framework/react/hoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ReactPortal,
99
useEffect,
1010
useState
11-
} from 'https://esm.sh/react'
11+
} from 'react'
1212
import { useDeno, useRouter } from './hooks.ts'
1313

1414
type ReactNode = ReactChild | ReactFragment | ReactPortal

framework/react/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useContext, useMemo } from 'https://esm.sh/react'
1+
import { useContext, useMemo } from 'react'
22
import util from '../../shared/util.ts'
33
import type { RouterURL } from '../../types.ts'
44
import events from '../core/events.ts'

framework/react/htmlpage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference lib="dom" />
22

3-
import React, { useEffect, useRef, RefObject, PropsWithRef, HTMLAttributes } from 'https://esm.sh/react'
3+
import React, { useEffect, useRef, RefObject, PropsWithRef, HTMLAttributes } from 'react'
44
import { redirect } from '../core/redirect.ts'
55

66
type HTMLPageProps = PropsWithRef<HTMLAttributes<{}> & {

framework/react/pageprops.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentType } from 'https://esm.sh/react'
1+
import { ComponentType } from 'react'
22
import type { RouterURL } from '../../types.ts'
33
import { E400MissingComponent } from './error.ts'
44
import { isLikelyReactComponent } from './helper.ts'

0 commit comments

Comments
 (0)