Skip to content

Commit

Permalink
fix: fix reactRefresh TS version dismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Dec 6, 2020
1 parent 777a923 commit 0c7a0be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tsc/compile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reactRefreshTS from 'https://esm.sh/react-refresh-typescript@1.0.4'
import ts from 'https://esm.sh/typescript@4.0.5'
import reactRefreshTS from 'https://esm.sh/react-refresh-typescript@1.[email protected]'
import ts from 'https://esm.sh/typescript@4.1.2'
import transformImportPathRewrite from './transform-import-path-rewrite.ts'
import transformReactJsx from './transform-react-jsx.ts'
import transformReactUseDenoHook from './transform-react-use-deno-hook.ts'
Expand Down
2 changes: 1 addition & 1 deletion tsc/transform-import-path-rewrite.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ts from 'https://esm.sh/typescript@4.0.5'
import ts from 'https://esm.sh/typescript@4.1.2'

/**
* TS AST transformer to rewrite import path.
Expand Down
2 changes: 1 addition & 1 deletion tsc/transform-react-jsx.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ts from 'https://esm.sh/typescript@4.0.5'
import ts from 'https://esm.sh/typescript@4.1.2'
import { path } from '../std.ts'

export default function transformReactJsx(sf: ts.SourceFile, node: ts.Node, options: { mode: 'development' | 'production', rewriteImportPath: (importPath: string) => string }): ts.VisitResult<ts.Node> {
Expand Down
4 changes: 2 additions & 2 deletions tsc/transform-react-use-deno-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* TypeScript AST Transformer for useDeno hook.
*/

import ts from 'https://esm.sh/typescript@4.0.5'
import ts from 'https://esm.sh/typescript@4.1.2'

const f = ts.factory

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

0 comments on commit 0c7a0be

Please sign in to comment.