Unverified Commit 55e89e75 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix polyfill for ie11 (#5763)

* Fix polyfill for ie11

* Use esmodules only when using webpack
parent 09a8960f
......@@ -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'])],
......
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