Skip to content

Commit

Permalink
Update preset.ts: Remove any and use updated Node.js types (#11075)
Browse files Browse the repository at this point in the history
Remove any and use updated Node.js types
  • Loading branch information
lifeiscontent committed Mar 15, 2020
1 parent bc4aba1 commit 85e9ce1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/next/build/babel/preset.ts
Expand Up @@ -157,9 +157,7 @@ module.exports = (
helpers: true,
regenerator: true,
useESModules: supportsESM && presetEnvConfig.modules !== 'commonjs',
absoluteRuntime: (process.versions as any).pnp
? __dirname
: undefined,
absoluteRuntime: process.versions.pnp ? __dirname : undefined,
...options['transform-runtime'],
},
],
Expand Down

0 comments on commit 85e9ce1

Please sign in to comment.