@wevu/compiler 6.14.0 → 6.14.1
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.d.mts +2 -1
- package/dist/index.mjs +11 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { Expression } from "@weapp-vite/ast/babelTypes";
|
|
|
3
3
|
import { AstEngineName, AstEngineName as AstEngineName$1 } from "@weapp-vite/ast";
|
|
4
4
|
import { LRUCache } from "lru-cache";
|
|
5
5
|
import { SFCBlock, SFCDescriptor, SFCParseResult, SFCStyleBlock } from "vue/compiler-sfc";
|
|
6
|
-
|
|
7
6
|
//#region src/auto-import-components/builtin.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* 内置组件集合(来自自动生成的组件列表)。
|
|
@@ -421,6 +420,8 @@ declare function compileJsxFile(source: string, filename: string, options?: Comp
|
|
|
421
420
|
//#endregion
|
|
422
421
|
//#region src/plugins/utils/cache.d.ts
|
|
423
422
|
declare const mtimeCache: Map<string, {
|
|
423
|
+
ctimeMs: number;
|
|
424
|
+
ino: number;
|
|
424
425
|
mtimeMs: number;
|
|
425
426
|
size: number;
|
|
426
427
|
}>;
|
package/dist/index.mjs
CHANGED
|
@@ -3925,20 +3925,28 @@ async function isInvalidate(id) {
|
|
|
3925
3925
|
const cached = mtimeCache.get(id);
|
|
3926
3926
|
const stats = await stat(id);
|
|
3927
3927
|
const mtimeMs = typeof stats?.mtimeMs === "number" ? stats.mtimeMs : NaN;
|
|
3928
|
+
const ctimeMs = typeof stats?.ctimeMs === "number" ? stats.ctimeMs : NaN;
|
|
3928
3929
|
const size = typeof stats?.size === "number" ? stats.size : NaN;
|
|
3930
|
+
const ino = typeof stats?.ino === "number" ? stats.ino : NaN;
|
|
3929
3931
|
if (!Number.isFinite(mtimeMs)) return true;
|
|
3932
|
+
if (!Number.isFinite(ctimeMs)) return true;
|
|
3930
3933
|
if (!Number.isFinite(size)) return true;
|
|
3934
|
+
if (!Number.isFinite(ino)) return true;
|
|
3931
3935
|
if (cached === void 0) {
|
|
3932
3936
|
mtimeCache.set(id, {
|
|
3933
3937
|
mtimeMs,
|
|
3934
|
-
|
|
3938
|
+
ctimeMs,
|
|
3939
|
+
size,
|
|
3940
|
+
ino
|
|
3935
3941
|
});
|
|
3936
3942
|
return true;
|
|
3937
3943
|
}
|
|
3938
|
-
if (cached.mtimeMs === mtimeMs && cached.size === size) return false;
|
|
3944
|
+
if (cached.mtimeMs === mtimeMs && cached.ctimeMs === ctimeMs && cached.size === size && cached.ino === ino) return false;
|
|
3939
3945
|
mtimeCache.set(id, {
|
|
3940
3946
|
mtimeMs,
|
|
3941
|
-
|
|
3947
|
+
ctimeMs,
|
|
3948
|
+
size,
|
|
3949
|
+
ino
|
|
3942
3950
|
});
|
|
3943
3951
|
return true;
|
|
3944
3952
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wevu/compiler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.14.
|
|
4
|
+
"version": "6.14.1",
|
|
5
5
|
"description": "wevu 编译器基础包,面向小程序模板的编译与转换",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@vue/compiler-core": "^3.5.32",
|
|
45
45
|
"@vue/compiler-dom": "^3.5.32",
|
|
46
46
|
"comment-json": "^4.6.2",
|
|
47
|
-
"lru-cache": "^11.2
|
|
47
|
+
"lru-cache": "^11.3.2",
|
|
48
48
|
"magic-string": "^0.30.21",
|
|
49
49
|
"merge": "^2.1.1",
|
|
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.
|
|
53
|
+
"@weapp-vite/ast": "6.14.1",
|
|
54
54
|
"rolldown-require": "2.0.12"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|