Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable core-js for server-side build #10189

Merged
merged 4 commits into from Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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