Skip to content

Commit

Permalink
Use development babel presets if it's we are not in production. (verc…
Browse files Browse the repository at this point in the history
…el#1895)

Otherwise, user has to expose it's env variable as development.
Usually, that's unlikely to happen.
  • Loading branch information
arunoda authored May 6, 2017
1 parent 8268905 commit 5153d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build/babel/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const envPlugins = {
]
}

const plugins = envPlugins[process.env.NODE_ENV] || []
const plugins = envPlugins[process.env.NODE_ENV] || envPlugins['development']

module.exports = {
presets: [
Expand Down

0 comments on commit 5153d69

Please sign in to comment.