We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43112ef commit cd8518bCopy full SHA for cd8518b
apps/admin/src/utils/vConsole.ts
@@ -1,10 +1,11 @@
1
import { checkIsWebView } from '@boolti/bridge';
2
import type vConsole from 'vconsole';
3
+import { IS_PRODUCTION_PHASE } from '~/constants/phase';
4
5
let vConsoleObject: vConsole | undefined;
6
7
export const initVConsole = async () => {
- if (checkIsWebView()) {
8
+ if (checkIsWebView() && IS_PRODUCTION_PHASE) {
9
const { default: vConsole } = await import('vconsole');
10
vConsoleObject = new vConsole({});
11
}
0 commit comments