Skip to content

Commit 01cbe4c

Browse files
committed
fix: jsx dev runtime error
1 parent 0ce0870 commit 01cbe4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/next-contentlayer/src/hooks/useMDXComponent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getMDXComponent as getMDXComponentOriginal } from '@contentlayer2/core/client'
22
import * as React from 'react'
3-
import * as _jsx_dev_runtime from 'react/jsx-dev-runtime'
43
import * as _jsx_runtime from 'react/jsx-runtime'
54
import * as ReactDOM from 'react-dom'
65

@@ -9,7 +8,7 @@ import * as ReactDOM from 'react-dom'
98
const defaultRuntime = {
109
React,
1110
ReactDOM,
12-
_jsx_runtime: process.env.NODE_ENV === 'production' ? _jsx_runtime : _jsx_dev_runtime,
11+
_jsx_runtime,
1312
}
1413

1514
/**

0 commit comments

Comments
 (0)