Skip to content

Commit 478c78b

Browse files
committedAug 27, 2022
Fix support for Node loaders
See release notes of Node 16.17.0: <https://github.com/nodejs/node/releases/tag/v16.17.0>.
1 parent e890c1a commit 478c78b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/node-loader/lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function createLoader(options = {}) {
5656
source = String(file).replace(/\/jsx-runtime(?=["'])/g, '$&.js')
5757
}
5858

59-
return {format: 'module', source}
59+
return {format: 'module', source, shortCircuit: true}
6060
}
6161

6262
// Pre version 17.

‎script/jsx-loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function createLoader() {
4242
}
4343
}
4444

45-
return {format: 'module', source: code}
45+
return {format: 'module', source: code, shortCircuit: true}
4646
}
4747

4848
// Pre version 17.

1 commit comments

Comments
 (1)

vercel[bot] commented on Aug 27, 2022

@vercel[bot]

Successfully deployed to the following URLs:

mdx – ./

mdx-mdx.vercel.app
mdx-git-main-mdx.vercel.app
mdxjs.com
v2.mdxjs.com

Please sign in to comment.