From 5153d6958b6cffa3e661a10a6b889f5b492ee92f Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Sat, 6 May 2017 00:07:50 -0700 Subject: [PATCH] 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. --- server/build/babel/preset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/build/babel/preset.js b/server/build/babel/preset.js index dd391359..129c2e85 100644 --- a/server/build/babel/preset.js +++ b/server/build/babel/preset.js @@ -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: [