@@ -104,7 +104,6 @@ console.log(String(compiled))
104104Yields roughly:
105105
106106``` tsx
107- /* @jsxRuntime automatic @jsxImportSource react */
108107import {Fragment as _Fragment , jsx as _jsx , jsxs as _jsxs } from ' react/jsx-runtime'
109108
110109export function Thing() {
@@ -653,8 +652,8 @@ Configuration for `createProcessor` (TypeScript type).
653652 …yields this difference:
654653
655654 ``` diff
656- /* @jsxRuntime automatic @jsxImportSource react */
657655 -import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from 'react/jsx-runtime'
656+ +/* @jsxRuntime automatic @jsxImportSource react */
658657
659658 export function Thing() {
660659 - return _jsx(_Fragment, {children: 'World'})
@@ -701,9 +700,7 @@ Configuration for `createProcessor` (TypeScript type).
701700 …yields this difference:
702701
703702 ``` diff
704- -/* @jsxRuntime automatic @jsxImportSource react */
705703 -import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from 'react/jsx-runtime'
706- +/* @jsxRuntime automatic @jsxImportSource preact */
707704 +import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from 'preact/jsx-runtime'
708705 ```
709706
@@ -729,9 +726,7 @@ Configuration for `createProcessor` (TypeScript type).
729726 …yields this difference:
730727
731728 ``` diff
732- -/* @jsxRuntime automatic @jsxImportSource react */
733729 -import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from 'react/jsx-runtime'
734- +/* @jsxRuntime classic @jsx React.createElement @jsxFrag React.Fragment */
735730 +import React from 'react'
736731
737732 export function Thing() {
@@ -767,14 +762,14 @@ Configuration for `createProcessor` (TypeScript type).
767762 …yields:
768763
769764 ``` tsx
770- /* @jsxRuntime automatic @jsxImportSource react */
771765 import {jsx as _jsx , jsxs as _jsxs } from ' react/jsx-runtime'
772766 export const no = 3.14
773767 function _createMdxContent(props ) { /* … */ }
774768 export default function MDXContent(props = {}) { /* … */ }
775769 ```
776770
777771 ``` tsx
772+ ' use strict'
778773 const {Fragment : _Fragment, jsx : _jsx} = arguments [0 ]
779774 const no = 3.14
780775 function _createMdxContent(props ) { /* … */ }
@@ -826,9 +821,7 @@ Configuration for `createProcessor` (TypeScript type).
826821 …yields this difference:
827822
828823 ``` diff
829- -/* @jsxRuntime classic @jsx React.createElement @jsxFrag React.Fragment */
830824 -import React from 'react'
831- +/* @jsxRuntime classic @jsx preact.createElement @jsxFrag preact.Fragment */
832825 +import preact from 'preact/compat'
833826
834827 export function Thing() {
@@ -879,7 +872,6 @@ Configuration for `createProcessor` (TypeScript type).
879872 …yields this difference:
880873
881874 ``` diff
882- /* @jsxRuntime automatic @jsxImportSource react */
883875 import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from 'react/jsx-runtime'
884876 +import {useMDXComponents as _provideComponents} from '@mdx-js/react'
885877
0 commit comments