77 * @import {IScriptSnapshot} from 'typescript'
88 * @import {Processor} from 'unified'
99 * @import {VFileMessage} from 'vfile-message'
10- * @import {VirtualCodePlugin, VirtualCodePluginObject } from './plugins/plugin.js'
10+ * @import {VirtualCodePlugin} from './plugins/plugin.js'
1111 */
1212
1313import { createVisitors } from 'estree-util-scope'
@@ -19,12 +19,10 @@ import {isInjectableComponent, isInjectableEstree} from './jsx-utils.js'
1919/**
2020 * Render the content that should be prefixed to the embedded JavaScript file.
2121 *
22- * @param {boolean } tsCheck
23- * If true, insert a `@check-js` comment into the virtual JavaScript code.
2422 * @param {string } jsxImportSource
2523 * The string to use for the JSX import source tag.
2624 */
27- const jsPrefix = ( tsCheck , jsxImportSource ) => `/* @jsxRuntime automatic
25+ const jsPrefix = ( jsxImportSource ) => `/* @jsxRuntime automatic
2826@jsxImportSource ${ jsxImportSource } */
2927`
3028
@@ -98,7 +96,7 @@ export default function MDXContent(props) {
9896
9997const jsxIndent = '\n '
10098
101- const fallback = jsPrefix ( false , 'react' ) + componentStart ( false ) + componentEnd
99+ const fallback = jsPrefix ( 'react' ) + componentStart ( false ) + componentEnd
102100
103101/**
104102 * Visit an mdast tree with and enter and exit callback.
@@ -244,7 +242,7 @@ function getEmbeddedCodes(
244242) {
245243 let hasAwait = false
246244 let hasImports = false
247- let esm = jsPrefix ( checkMdx , jsxImportSource )
245+ let esm = jsPrefix ( jsxImportSource )
248246 let jsx = ''
249247 let jsxVariables = ''
250248 let markdown = ''
0 commit comments