Skip to content

Commit

Permalink
Disable new JSX runtime in development
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Aug 28, 2020
1 parent ede5142 commit 33e4815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/build/babel/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ module.exports = (
const supportsESM = api.caller(supportsStaticESM)
const isServer = api.caller((caller: any) => !!caller && caller.isServer)
const isModern = api.caller((caller: any) => !!caller && caller.isModern)
const hasJsxRuntime = Boolean(
api.caller((caller: any) => !!caller && caller.hasJsxRuntime)
)
const hasJsxRuntime =
Boolean(api.caller((caller: any) => !!caller && caller.hasJsxRuntime)) &&
isProduction

const isLaxModern =
isModern ||
Expand Down

0 comments on commit 33e4815

Please sign in to comment.