@vingy/vuebugger 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ const setUidGenerator = (fn) => {
|
|
|
34
34
|
getUid = fn;
|
|
35
35
|
};
|
|
36
36
|
const debug = (groupId, state) => {
|
|
37
|
-
if (!import.meta.env
|
|
37
|
+
if (!import.meta.env?.DEV) return state;
|
|
38
38
|
const instance = getCurrentInstance();
|
|
39
39
|
const componentName = instance?.type.name || instance?.type.__name || "No component";
|
|
40
40
|
const uid = `${componentName}/${groupId}-${getUid()}`;
|
|
@@ -3950,7 +3950,7 @@ function setupComposableDevtools(app) {
|
|
|
3950
3950
|
//#endregion
|
|
3951
3951
|
//#region src/index.ts
|
|
3952
3952
|
const plugin = { install: (app, options) => {
|
|
3953
|
-
if (!import.meta.env
|
|
3953
|
+
if (!import.meta.env?.DEV) return;
|
|
3954
3954
|
if (options?.uidFn) setUidGenerator(options.uidFn);
|
|
3955
3955
|
setupComposableDevtools(app);
|
|
3956
3956
|
} };
|