fix: 清除模块加载缓存导致library中的文件变动后无法生效 (#2525)

This commit is contained in:
Bread Grocery
2025-12-07 23:38:35 +08:00
committed by GitHub
parent 15d688797f
commit 08f9312fb3

View File

@@ -92,6 +92,8 @@ public class ScriptProject
{
if (Manifest.Library.Length != 0)
{
// 清除Document缓存
DocumentLoader.Default.DiscardCachedDocuments();
await (Task)engine.Evaluate(new DocumentInfo { Category = ModuleCategory.Standard }, code);
}
else