Skip to content

Commit 63a62dc

Browse files
authored
fix(vm-sandbox): 修复 disableCollect 赋值问题 (#643)
* fix(loader): fix the requestConfig type definition in beforeLoad * fix: 修复 disableCollect 赋值问题
1 parent 4cdd993 commit 63a62dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser-vm/src/pluginify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function createOptions(Garfish: interfaces.Garfish) {
134134
disableElementtiming: Boolean(appInfo.sandbox?.disableElementtiming),
135135
strictIsolation: Boolean(appInfo.sandbox?.strictIsolation),
136136
// 缓存模式,不收集副作用
137-
disableCollect: Boolean(appInfo.cache || true),
137+
disableCollect: appInfo.cache === undefined ? true : Boolean(appInfo.cache),
138138
el: () => appInstance.htmlNode,
139139
styleScopeId: () => appInstance.appContainer.id,
140140
protectVariable: () => appInfo.protectVariable || [],

0 commit comments

Comments
 (0)