@vixt/uni 0.13.3 → 0.13.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.
@@ -49,8 +49,8 @@ function transformH5Runtime(code, id) {
49
49
  }
50
50
  /** 修复app运行白屏,原因是pinia调用了@vue/devtools-kit的setupDevToolsPlugin */
51
51
  function transformPinia(code, id) {
52
- if (!id.endsWith("pinia/dist/pinia.mjs")) return code;
53
- code = code.replace(`import { setupDevtoolsPlugin } from '@vue/devtools-api';`, `function setupDevtoolsPlugin() {};`);
52
+ if (!/pinia\/dist\/pinia\.m?js/.test(id)) return code;
53
+ code = code.replace(`import { setupDevtoolsPlugin } from '@vue/devtools-api';`, `function setupDevtoolsPlugin() {};`).replace(`import { setupDevtoolsPlugin } from "@vue/devtools-api";`, `function setupDevtoolsPlugin() {};`);
54
54
  return code;
55
55
  }
56
56
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "keywords": [
5
5
  "uni",
6
6
  "uni-app",
@@ -33,7 +33,7 @@
33
33
  "@uni-helper/vite-plugin-uni-components": "0.2.6",
34
34
  "@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
35
35
  "@uni-helper/vite-plugin-uni-pages": "^0.3.24",
36
- "@vixt/core": "0.13.3",
36
+ "@vixt/core": "0.13.4",
37
37
  "defu": "^6.1.7",
38
38
  "fast-glob": "^3.3.3",
39
39
  "fs-extra": "^11.4.0",