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:
parent
09a8960f1a
commit
55e89e759a
|
@ -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'])],
|
||||
|
|
Loading…
Reference in a new issue