@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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -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.DEV) return state;
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.DEV) return;
3953
+ if (!import.meta.env?.DEV) return;
3954
3954
  if (options?.uidFn) setUidGenerator(options.uidFn);
3955
3955
  setupComposableDevtools(app);
3956
3956
  } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vingy/vuebugger",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Vue devtools plugin to debug anything.",
5
5
  "keywords": [
6
6
  "composable",