Commit fa65442c authored by Tim Neutkens's avatar Tim Neutkens Committed by Joe Haddad

Disable core-js for server-side build (#10189)

* Disable core-js in server-side build

* Update cache-key
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent 4bd6a53e
...@@ -149,7 +149,7 @@ module.exports = ( ...@@ -149,7 +149,7 @@ module.exports = (
useBuiltIns: true, useBuiltIns: true,
}, },
], ],
[ !isServer && [
require('@babel/plugin-transform-runtime'), require('@babel/plugin-transform-runtime'),
{ {
corejs: 2, corejs: 2,
......
...@@ -4,7 +4,7 @@ import hash from 'string-hash' ...@@ -4,7 +4,7 @@ import hash from 'string-hash'
// increment 'e' to invalidate cache // increment 'e' to invalidate cache
// eslint-disable-next-line no-useless-concat // eslint-disable-next-line no-useless-concat
const cacheKey = 'babel-cache-' + 'g' + '-' const cacheKey = 'babel-cache-' + 'h' + '-'
const nextBabelPreset = require('../../babel/preset') const nextBabelPreset = require('../../babel/preset')
const getModernOptions = (babelOptions = {}) => { const getModernOptions = (babelOptions = {}) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment