@@ -1154,7 +1154,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
11541154 assert . equal (
11551155 String ( await compile ( '*a*' , { jsx : true } ) ) ,
11561156 [
1157- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1157+ '/*@jsxRuntime automatic*/' ,
1158+ '/*@jsxImportSource react*/' ,
11581159 'function _createMdxContent(props) {' ,
11591160 ' const _components = {' ,
11601161 ' em: "em",' ,
@@ -1176,7 +1177,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
11761177 assert . equal (
11771178 String ( await compile ( '<a {...b} c d="1" e={1} />' , { jsx : true } ) ) ,
11781179 [
1179- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1180+ '/*@jsxRuntime automatic*/' ,
1181+ '/*@jsxImportSource react*/' ,
11801182 'function _createMdxContent(props) {' ,
11811183 ' return <a {...b} c d="1" e={1} />;' ,
11821184 '}' ,
@@ -1195,7 +1197,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
11951197 assert . equal (
11961198 String ( await compile ( '<><a:b /><c.d/></>' , { jsx : true } ) ) ,
11971199 [
1198- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1200+ '/*@jsxRuntime automatic*/' ,
1201+ '/*@jsxImportSource react*/' ,
11991202 'function _createMdxContent(props) {' ,
12001203 ' const {c} = props.components || ({});' ,
12011204 ' if (!c) _missingMdxReference("c", false);' ,
@@ -1219,7 +1222,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
12191222 assert . equal (
12201223 String ( await compile ( '<>a {/* 1 */} b</>' , { jsx : true } ) ) ,
12211224 [
1222- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1225+ '/*@jsxRuntime automatic*/' ,
1226+ '/*@jsxImportSource react*/' ,
12231227 '/*1*/' ,
12241228 'function _createMdxContent(props) {' ,
12251229 ' return <><>{"a "}{}{" b"}</></>;' ,
@@ -1239,7 +1243,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
12391243 assert . equal (
12401244 String ( await compile ( '{<a-b></a-b>}' , { jsx : true } ) ) ,
12411245 [
1242- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1246+ '/*@jsxRuntime automatic*/' ,
1247+ '/*@jsxImportSource react*/' ,
12431248 'function _createMdxContent(props) {' ,
12441249 ' const _components = {' ,
12451250 ' "a-b": "a-b",' ,
@@ -1261,7 +1266,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
12611266 assert . equal (
12621267 String ( await compile ( 'Hello {props.name}' , { jsx : true } ) ) ,
12631268 [
1264- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1269+ '/*@jsxRuntime automatic*/' ,
1270+ '/*@jsxImportSource react*/' ,
12651271 'function _createMdxContent(props) {' ,
12661272 ' const _components = {' ,
12671273 ' p: "p",' ,
@@ -1289,7 +1295,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
12891295 )
12901296 ) ,
12911297 [
1292- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1298+ '/*@jsxRuntime automatic*/' ,
1299+ '/*@jsxImportSource react*/' ,
12931300 'const MDXLayout = function Layout({components, ...props}) {' ,
12941301 ' return <section {...props} />;' ,
12951302 '};' ,
@@ -1320,7 +1327,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
13201327 } )
13211328 ) ,
13221329 [
1323- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1330+ '/*@jsxRuntime automatic*/' ,
1331+ '/*@jsxImportSource react*/' ,
13241332 'import {useMDXComponents as _provideComponents} from "@mdx-js/react";' ,
13251333 'function _createMdxContent(props) {' ,
13261334 ' const _components = {' ,
0 commit comments