We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6e130 commit 525c44fCopy full SHA for 525c44f
compiler/packages/babel-plugin-react-compiler/src/Babel/BabelPlugin.ts
@@ -30,13 +30,14 @@ export default function BabelPluginReactCompiler(
30
*/
31
Program(prog, pass): void {
32
let opts = parsePluginOptions(pass.opts);
33
+ const isDev = __DEV__ === true || process.env["NODE_ENV"] === "development";
34
if (
35
opts.enableReanimatedCheck === true &&
36
pipelineUsesReanimatedPlugin(pass.file.opts.plugins)
37
) {
38
opts = injectReanimatedFlag(opts);
39
}
- if (process.env["NODE_ENV"] === "development") {
40
+ if (isDev) {
41
opts = {
42
...opts,
43
environment: {
0 commit comments