Skip to content

Commit

Permalink
fix(vm-sandbox): 修复 disableCollect 赋值问题 (#643)
Browse files Browse the repository at this point in the history
* fix(loader): fix the requestConfig type definition in beforeLoad

* fix: 修复 disableCollect 赋值问题
  • Loading branch information
danpeen committed Oct 10, 2023
1 parent 4cdd993 commit 63a62dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser-vm/src/pluginify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function createOptions(Garfish: interfaces.Garfish) {
disableElementtiming: Boolean(appInfo.sandbox?.disableElementtiming),
strictIsolation: Boolean(appInfo.sandbox?.strictIsolation),
// 缓存模式,不收集副作用
disableCollect: Boolean(appInfo.cache || true),
disableCollect: appInfo.cache === undefined ? true : Boolean(appInfo.cache),
el: () => appInstance.htmlNode,
styleScopeId: () => appInstance.appContainer.id,
protectVariable: () => appInfo.protectVariable || [],
Expand Down

1 comment on commit 63a62dc

@vercel
Copy link

@vercel vercel bot commented on 63a62dc Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.