refactor: simplify isRemoteModuleEnabled handling in sandboxed renderers (#15961)
This commit is contained in:
parent
ab2a061b59
commit
764a10f7c7
3 changed files with 13 additions and 25 deletions
|
@ -6,7 +6,6 @@ for (const {
|
|||
name,
|
||||
load,
|
||||
enabled = true,
|
||||
configurable = false,
|
||||
private: isPrivate = false
|
||||
} of moduleList) {
|
||||
if (!enabled) {
|
||||
|
@ -14,7 +13,6 @@ for (const {
|
|||
}
|
||||
|
||||
Object.defineProperty(exports, name, {
|
||||
configurable,
|
||||
enumerable: !isPrivate,
|
||||
get: load
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue