Skip to content

Commit

Permalink
Disable core-js for server-side build (#10189)
Browse files Browse the repository at this point in the history
* Disable core-js in server-side build

* Update cache-key

Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
timneutkens and Timer committed Jan 21, 2020
1 parent 4bd6a53 commit fa65442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/babel/preset.ts
Expand Up @@ -149,7 +149,7 @@ module.exports = (
useBuiltIns: true,
},
],
[
!isServer && [
require('@babel/plugin-transform-runtime'),
{
corejs: 2,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/build/webpack/loaders/next-babel-loader.js
Expand Up @@ -4,7 +4,7 @@ import hash from 'string-hash'

// increment 'e' to invalidate cache
// eslint-disable-next-line no-useless-concat
const cacheKey = 'babel-cache-' + 'g' + '-'
const cacheKey = 'babel-cache-' + 'h' + '-'
const nextBabelPreset = require('../../babel/preset')

const getModernOptions = (babelOptions = {}) => {
Expand Down

0 comments on commit fa65442

Please sign in to comment.