1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix polyfill for ie11 (#5763)

* Fix polyfill for ie11

* Use esmodules only when using webpack
This commit is contained in:
Tim Neutkens 2018-11-29 12:36:03 +01:00 committed by GitHub
parent 09a8960f1a
commit 55e89e759a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,8 +51,10 @@ module.exports = (context, opts = {}) => ({
[require('@babel/plugin-proposal-class-properties'), opts['class-properties'] || {}],
require('@babel/plugin-proposal-object-rest-spread'),
[require('@babel/plugin-transform-runtime'), {
helpers: false,
corejs: 2,
helpers: true,
regenerator: true,
useESModules: !isTest,
...opts['transform-runtime']
}],
[require('styled-jsx/babel'), styledJsxOptions(opts['styled-jsx'])],