Skip to content

Commit e6375e4

Browse files
committed
Use runtime version from manifest
1 parent ab92554 commit e6375e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/next/build/babel/preset.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ module.exports = (
157157
helpers: true,
158158
regenerator: true,
159159
useESModules: supportsESM && presetEnvConfig.modules !== 'commonjs',
160-
// the lower of the entries in package.json for `@babel/rutime` and `@babel/runtime-corejs2`
161-
version: '7.7.2',
160+
version: require('@babel/runtime-corejs2/package.json').version,
162161
absoluteRuntime: (process.versions as any).pnp
163162
? __dirname
164163
: undefined,

0 commit comments

Comments
 (0)