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

Use development babel presets if it's we are not in production. (#1895)

Otherwise, user has to expose it's env variable as development.
Usually, that's unlikely to happen.
This commit is contained in:
Arunoda Susiripala 2017-05-06 00:07:50 -07:00 committed by GitHub
parent 8268905d2f
commit 5153d6958b

View file

@ -9,7 +9,7 @@ const envPlugins = {
] ]
} }
const plugins = envPlugins[process.env.NODE_ENV] || [] const plugins = envPlugins[process.env.NODE_ENV] || envPlugins['development']
module.exports = { module.exports = {
presets: [ presets: [