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 0b62d73Copy full SHA for 0b62d73
compiler/packages/babel-plugin-react-compiler/src/Babel/BabelPlugin.ts
@@ -30,13 +30,15 @@ export default function BabelPluginReactCompiler(
30
*/
31
Program(prog, pass): void {
32
let opts = parsePluginOptions(pass.opts);
33
+ const isDev =
34
+ __DEV__ === true || process.env["NODE_ENV"] === "development";
35
if (
36
opts.enableReanimatedCheck === true &&
37
pipelineUsesReanimatedPlugin(pass.file.opts.plugins)
38
) {
39
opts = injectReanimatedFlag(opts);
40
}
- if (process.env["NODE_ENV"] === "development") {
41
+ if (isDev) {
42
opts = {
43
...opts,
44
environment: {
0 commit comments