Skip to content

Commit

Permalink
Disable correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jan 21, 2020
1 parent 85da73d commit fc0c4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/taskfile-babel.js
Expand Up @@ -70,11 +70,11 @@ module.exports = function(task) {
plugins: [
...babelOpts.plugins,
// pages dir doesn't need core-js
serverOrClient === 'client' && file.dir !== 'pages'
serverOrClient === 'client'
? [
'@babel/plugin-transform-runtime',
{
corejs: 2,
corejs: file.dir !== 'pages' ? 2 : false,
helpers: true,
regenerator: false,
useESModules: false,
Expand Down

0 comments on commit fc0c4a1

Please sign in to comment.