Skip to content

Commit 5236db5

Browse files
committed
fix: fix plugin
1 parent f40591c commit 5236db5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plugins/renderer/render.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import sharp from 'sharp'
2+
import * as React from 'react'
23
import { Suspense, use } from 'react'
34
import { fs, path, wait } from 'mioki'
45
import { renderToReadableStream } from 'react-dom/server'
56

6-
import type * as React from 'react'
77
import type { Arrayable } from 'mioki'
88
import type * as puppeteer from 'puppeteer-core'
99
import type { BrowserPool } from './browser-pool'

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"rewriteRelativeImportExtensions": true,
1010
"esModuleInterop": true,
1111
"declaration": true,
12-
"resolveJsonModule": true
12+
"resolveJsonModule": true,
13+
"jsx": "react"
1314
}
1415
}

0 commit comments

Comments
 (0)