@wevu/compiler 6.14.1 → 6.14.2

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 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -411,11 +411,12 @@ function rewriteJsLikeImportsForTempDir(source, fromDir, tempDir) {
411
411
  }
412
412
  //#endregion
413
413
  //#region src/plugins/vue/transform/wevuTempDir.ts
414
+ const PROJECT_WEVU_CONFIG_DIR = path.join(".weapp-vite", "wevu-config");
414
415
  function getWevuConfigCacheRoot() {
415
416
  const env = process.env.WEAPP_VITE_WEVU_CONFIG_DIR?.trim();
416
417
  if (env) return path.resolve(env);
417
418
  const cwd = process.cwd();
418
- const projectCacheDir = path.join(cwd, ".wevu-config");
419
+ const projectCacheDir = path.join(cwd, PROJECT_WEVU_CONFIG_DIR);
419
420
  if (fs.existsSync(projectCacheDir)) return projectCacheDir;
420
421
  return path.join(os.tmpdir(), "weapp-vite", "wevu-config");
421
422
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wevu/compiler",
3
3
  "type": "module",
4
- "version": "6.14.1",
4
+ "version": "6.14.2",
5
5
  "description": "wevu 编译器基础包,面向小程序模板的编译与转换",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "pathe": "^2.0.3",
51
51
  "vue": "^3.5.32",
52
52
  "@weapp-core/shared": "3.0.3",
53
- "@weapp-vite/ast": "6.14.1",
53
+ "@weapp-vite/ast": "6.14.2",
54
54
  "rolldown-require": "2.0.12"
55
55
  },
56
56
  "publishConfig": {