mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Disable polyfill and helpers (#3652)
This commit is contained in:
parent
09500c25ff
commit
7e00548b8a
|
@ -47,7 +47,11 @@ module.exports = (context, opts = {}) => ({
|
|||
require.resolve('./plugins/handle-import'),
|
||||
require.resolve('babel-plugin-transform-object-rest-spread'),
|
||||
require.resolve('babel-plugin-transform-class-properties'),
|
||||
[require.resolve('babel-plugin-transform-runtime'), opts['transform-runtime'] || {}],
|
||||
[require.resolve('babel-plugin-transform-runtime'), opts['transform-runtime'] || {
|
||||
helpers: false,
|
||||
polyfill: false,
|
||||
regenerator: true
|
||||
}],
|
||||
[require.resolve('styled-jsx/babel'), styledJsxOptions(opts['styled-jsx'])],
|
||||
...plugins
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue