Skip to content

Commit

Permalink
Use runtime version from manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Dec 9, 2019
1 parent ab92554 commit e6375e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/build/babel/preset.ts
Expand Up @@ -157,8 +157,7 @@ module.exports = (
helpers: true,
regenerator: true,
useESModules: supportsESM && presetEnvConfig.modules !== 'commonjs',
// the lower of the entries in package.json for `@babel/rutime` and `@babel/runtime-corejs2`
version: '7.7.2',
version: require('@babel/runtime-corejs2/package.json').version,
absoluteRuntime: (process.versions as any).pnp
? __dirname
: undefined,
Expand Down

0 comments on commit e6375e4

Please sign in to comment.