Commit 5153d695 authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by GitHub

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.
parent 8268905d
...@@ -9,7 +9,7 @@ const envPlugins = { ...@@ -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: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment