Skip to content

Commit

Permalink
^ vite plugin mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy committed Sep 5, 2023
1 parent 4f0e9c7 commit ffe565e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/vite-plugin-mdx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import tagExportsPlugin from './tag.js';

const babel = await import('@babel/core')
.catch(error => new Proxy({}, { get: () => {
if (process.version === 'v20.6.0') {
if (process.version.startsWith('v20.6')) {
console.error("The build could not complete because of a bug in Node.js v20.6.0.\nSee https://github.com/nodejs/node/issues/49497\n\nConsider using Node.js v20.5.1, or update if the issue has been fixed.")
process.exit(1)
}
else { console.log(error) }
process.exit(1)
else { throw error }
} }) as never);

interface TransformJSXOptions {
Expand Down

0 comments on commit ffe565e

Please sign in to comment.