Skip to content

Commit fa65442

Browse files
timneutkensTimer
andcommitted
Disable core-js for server-side build (vercel#10189)
* Disable core-js in server-side build * Update cache-key Co-authored-by: Joe Haddad <timer150@gmail.com>
1 parent 4bd6a53 commit fa65442

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/next/build/babel/preset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = (
149149
useBuiltIns: true,
150150
},
151151
],
152-
[
152+
!isServer && [
153153
require('@babel/plugin-transform-runtime'),
154154
{
155155
corejs: 2,

packages/next/build/webpack/loaders/next-babel-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import hash from 'string-hash'
44

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

1010
const getModernOptions = (babelOptions = {}) => {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy