1
0
Fork 0
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:
Tim Neutkens 2018-02-01 12:24:31 +01:00 committed by Arunoda Susiripala
parent 09500c25ff
commit 7e00548b8a

View file

@ -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
]