ohctechv3/.svn/pristine/bc/bc01c847a13b1a472aae98c7a054d2976845370c.svn-base

15 lines
373 B
Plaintext
Raw Permalink Normal View History

2024-10-28 15:03:36 +05:30
export default function createNodeEnvConditional(t, production, development) {
return t.conditionalExpression(
t.binaryExpression(
'===',
t.memberExpression(
t.memberExpression(t.identifier('process'), t.identifier('env')),
t.identifier('NODE_ENV')
),
t.stringLiteral('production')
),
production,
development
)
}