@@ -1154,7 +1154,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1154
1154
assert . equal (
1155
1155
String ( await compile ( '*a*' , { jsx : true } ) ) ,
1156
1156
[
1157
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1157
+ '/*@jsxRuntime automatic*/' ,
1158
+ '/*@jsxImportSource react*/' ,
1158
1159
'function _createMdxContent(props) {' ,
1159
1160
' const _components = {' ,
1160
1161
' em: "em",' ,
@@ -1176,7 +1177,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1176
1177
assert . equal (
1177
1178
String ( await compile ( '<a {...b} c d="1" e={1} />' , { jsx : true } ) ) ,
1178
1179
[
1179
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1180
+ '/*@jsxRuntime automatic*/' ,
1181
+ '/*@jsxImportSource react*/' ,
1180
1182
'function _createMdxContent(props) {' ,
1181
1183
' return <a {...b} c d="1" e={1} />;' ,
1182
1184
'}' ,
@@ -1195,7 +1197,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1195
1197
assert . equal (
1196
1198
String ( await compile ( '<><a:b /><c.d/></>' , { jsx : true } ) ) ,
1197
1199
[
1198
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1200
+ '/*@jsxRuntime automatic*/' ,
1201
+ '/*@jsxImportSource react*/' ,
1199
1202
'function _createMdxContent(props) {' ,
1200
1203
' const {c} = props.components || ({});' ,
1201
1204
' if (!c) _missingMdxReference("c", false);' ,
@@ -1219,7 +1222,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1219
1222
assert . equal (
1220
1223
String ( await compile ( '<>a {/* 1 */} b</>' , { jsx : true } ) ) ,
1221
1224
[
1222
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1225
+ '/*@jsxRuntime automatic*/' ,
1226
+ '/*@jsxImportSource react*/' ,
1223
1227
'/*1*/' ,
1224
1228
'function _createMdxContent(props) {' ,
1225
1229
' return <><>{"a "}{}{" b"}</></>;' ,
@@ -1239,7 +1243,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1239
1243
assert . equal (
1240
1244
String ( await compile ( '{<a-b></a-b>}' , { jsx : true } ) ) ,
1241
1245
[
1242
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1246
+ '/*@jsxRuntime automatic*/' ,
1247
+ '/*@jsxImportSource react*/' ,
1243
1248
'function _createMdxContent(props) {' ,
1244
1249
' const _components = {' ,
1245
1250
' "a-b": "a-b",' ,
@@ -1261,7 +1266,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1261
1266
assert . equal (
1262
1267
String ( await compile ( 'Hello {props.name}' , { jsx : true } ) ) ,
1263
1268
[
1264
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1269
+ '/*@jsxRuntime automatic*/' ,
1270
+ '/*@jsxImportSource react*/' ,
1265
1271
'function _createMdxContent(props) {' ,
1266
1272
' const _components = {' ,
1267
1273
' p: "p",' ,
@@ -1289,7 +1295,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1289
1295
)
1290
1296
) ,
1291
1297
[
1292
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1298
+ '/*@jsxRuntime automatic*/' ,
1299
+ '/*@jsxImportSource react*/' ,
1293
1300
'const MDXLayout = function Layout({components, ...props}) {' ,
1294
1301
' return <section {...props} />;' ,
1295
1302
'};' ,
@@ -1320,7 +1327,8 @@ test('@mdx-js/mdx: compile (JSX)', async function (t) {
1320
1327
} )
1321
1328
) ,
1322
1329
[
1323
- '/*@jsxRuntime automatic @jsxImportSource react*/' ,
1330
+ '/*@jsxRuntime automatic*/' ,
1331
+ '/*@jsxImportSource react*/' ,
1324
1332
'import {useMDXComponents as _provideComponents} from "@mdx-js/react";' ,
1325
1333
'function _createMdxContent(props) {' ,
1326
1334
' const _components = {' ,
0 commit comments