Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5153d69

Browse files
authored
Use development babel presets if it's we are not in production. (vercel#1895)
Otherwise, user has to expose it's env variable as development. Usually, that's unlikely to happen.
1 parent 8268905 commit 5153d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/build/babel/preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const envPlugins = {
99
]
1010
}
1111

12-
const plugins = envPlugins[process.env.NODE_ENV] || []
12+
const plugins = envPlugins[process.env.NODE_ENV] || envPlugins['development']
1313

1414
module.exports = {
1515
presets: [

0 commit comments

Comments
 (0)