refactor: simplify isRemoteModuleEnabled handling in sandboxed renderers (#15961)

This commit is contained in:
Milan Burda 2018-12-05 19:07:56 +01:00 committed by Shelley Vohr
parent ab2a061b59
commit 764a10f7c7
3 changed files with 13 additions and 25 deletions

View file

@ -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
})