Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@emotion /babel-plugin /src /utils /create-node-env-conditional.js
Download frontend/node_modules/@emotion/babel-plugin/src/utils/create-node-env-conditional.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/babel-plugin/src/utils/create-node-env-conditional.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@emotion/babel-plugin/src/utils/create-node-env-conditional.js
-
curl -L -o create-node-env-conditional.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/babel-plugin/src/utils/create-node-env-conditional.js
373 Bytes
| 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 | |
| ) | |
| } | |