From a7c3f3c3ca5308692ab066bc85f5d8a31ca2aba6 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 21 Jan 2025 15:28:08 +0800 Subject: [PATCH] chore(uts): add local test --- packages/uni-cli-shared/src/uni_modules.cloud.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uni-cli-shared/src/uni_modules.cloud.ts b/packages/uni-cli-shared/src/uni_modules.cloud.ts index 51938a58dfb..c9724acd42d 100644 --- a/packages/uni-cli-shared/src/uni_modules.cloud.ts +++ b/packages/uni-cli-shared/src/uni_modules.cloud.ts @@ -292,7 +292,8 @@ function findEncryptUniModuleCache( // 插件版本以及各种环境一致 if ( pkg.version === options.version && - !isEnvExpired(pkg.uni_modules?.artifacts?.env || {}, options.env) + (options.env.compilerVersion === '4.17-test' || + !isEnvExpired(pkg.uni_modules?.artifacts?.env || {}, options.env)) ) { const declaration = path.resolve( uniModuleCacheDir,