Skip to content

Commit

Permalink
Fix support for Node loaders
Browse files Browse the repository at this point in the history
See release notes of Node 16.17.0:
<https://github.com/nodejs/node/releases/tag/v16.17.0>.
  • Loading branch information
wooorm committed Aug 27, 2022
1 parent e890c1a commit 478c78b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/node-loader/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function createLoader(options = {}) {
source = String(file).replace(/\/jsx-runtime(?=["'])/g, '$&.js')
}

return {format: 'module', source}
return {format: 'module', source, shortCircuit: true}
}

// Pre version 17.
Expand Down
2 changes: 1 addition & 1 deletion script/jsx-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function createLoader() {
}
}

return {format: 'module', source: code}
return {format: 'module', source: code, shortCircuit: true}
}

// Pre version 17.
Expand Down

1 comment on commit 478c78b

@vercel
Copy link

@vercel vercel bot commented on 478c78b Aug 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.