Skip to content

Commit e577760

Browse files
committed
fix(*): Ignore register framework in dev
1 parent 73472ba commit e577760

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/core/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="vite/client" />
12
/**
23
* Copyright 2025 Google LLC
34
*
@@ -17,7 +18,6 @@
1718
import { registerFramework } from "./register-framework";
1819
import pkgJson from "../package.json";
1920

20-
2121
export * from "./auth";
2222
export * from "./behaviors";
2323
export * from "./config";
@@ -27,6 +27,6 @@ export * from "./country-data";
2727
export * from "./translations";
2828
export * from "./register-framework";
2929

30-
// if (!process.env.VITEST) {
31-
// registerFramework("core", pkgJson.version);
32-
// }
30+
if (import.meta.env.PROD) {
31+
registerFramework("core", pkgJson.version);
32+
}

packages/react/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="vite/client" />
12
/**
23
* Copyright 2025 Google LLC
34
*
@@ -22,6 +23,6 @@ export * from "./hooks";
2223
export * from "./components";
2324
export { FirebaseUIProvider, type FirebaseUIProviderProps } from "./context";
2425

25-
if (!process.env.VITEST) {
26+
if (import.meta.env.PROD) {
2627
registerFramework("react", pkgJson.version);
2728
}

0 commit comments

Comments
 (0)