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:
parent
8268905d2f
commit
5153d6958b
|
@ -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: [
|
||||||
|
|
Loading…
Reference in a new issue