We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43112ef + cd8518b commit acf9d17Copy full SHA for acf9d17
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