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

Commit 0c7a0be

Browse files
author
ije
committed
fix: fix reactRefresh TS version dismatch
1 parent 777a923 commit 0c7a0be

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tsc/compile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import reactRefreshTS from 'https://esm.sh/react-refresh-typescript@1.0.4'
2-
import ts from 'https://esm.sh/typescript@4.0.5'
1+
import reactRefreshTS from 'https://esm.sh/react-refresh-typescript@1.[email protected]'
2+
import ts from 'https://esm.sh/typescript@4.1.2'
33
import transformImportPathRewrite from './transform-import-path-rewrite.ts'
44
import transformReactJsx from './transform-react-jsx.ts'
55
import transformReactUseDenoHook from './transform-react-use-deno-hook.ts'

tsc/transform-import-path-rewrite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ts from 'https://esm.sh/typescript@4.0.5'
1+
import ts from 'https://esm.sh/typescript@4.1.2'
22

33
/**
44
* TS AST transformer to rewrite import path.

tsc/transform-react-jsx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ts from 'https://esm.sh/typescript@4.0.5'
1+
import ts from 'https://esm.sh/typescript@4.1.2'
22
import { path } from '../std.ts'
33

44
export default function transformReactJsx(sf: ts.SourceFile, node: ts.Node, options: { mode: 'development' | 'production', rewriteImportPath: (importPath: string) => string }): ts.VisitResult<ts.Node> {

tsc/transform-react-use-deno-hook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* TypeScript AST Transformer for useDeno hook.
33
*/
44

5-
import ts from 'https://esm.sh/typescript@4.0.5'
5+
import ts from 'https://esm.sh/typescript@4.1.2'
66

77
const f = ts.factory
88

9-
export default function transformReactUseDenoHook(sf: ts.SourceFile, node: ts.Node, options:{index:number, signUseDeno: (id: string) => string}): ts.VisitResult<ts.Node> {
9+
export default function transformReactUseDenoHook(sf: ts.SourceFile, node: ts.Node, options: { index: number, signUseDeno: (id: string) => string }): ts.VisitResult<ts.Node> {
1010
if (isUseDenoHookCallExpr(node)) {
1111
const args = node.arguments as unknown as Array<any>
1212
const id = options.signUseDeno(`${sf.fileName}:useDeno#${options.index++}`)

0 commit comments

Comments
 (0)