Skip to content

Commit

Permalink
Add annotation to use classic runtime (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts committed Oct 20, 2020
1 parent 78dabc0 commit ea6a41c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/mdx/index.js
Expand Up @@ -110,7 +110,8 @@ function sync(mdx, options = {}) {

const {contents} = compiler.processSync(fileOpts)

return `/* @jsx mdx */
return `/* @jsxRuntime classic */
/* @jsx mdx */
${contents}`
}

Expand All @@ -124,7 +125,8 @@ async function compile(mdx, options = {}) {

const {contents} = await compiler.process(fileOpts)

return `/* @jsx mdx */
return `/* @jsxRuntime classic */
/* @jsx mdx */
${contents}`
}

Expand Down

1 comment on commit ea6a41c

@vercel
Copy link

@vercel vercel bot commented on ea6a41c Oct 20, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.