We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@mdx-js/node-loader
1 parent 7087dec commit 3e0ab23Copy full SHA for 3e0ab23
packages/node-loader/lib/index.js
@@ -53,7 +53,7 @@ export function createLoader(options = {}) {
53
let source = String(file)
54
55
if (fixRuntimeWithoutExportMap) {
56
- source = String(file).replace(/\/jsx-runtime(?=["'])/g, '$&.js')
+ source = String(file).replace(/\/jsx-runtime(?=["'])/, '$&.js')
57
}
58
59
return {format: 'module', source, shortCircuit: true}
@@ -89,7 +89,7 @@ export function createLoader(options = {}) {
89
90
91
92
93
94
95
return {source}
0 commit comments