fix: don't export __esModule = true by electron.ts (#20939)
This commit is contained in:
parent
267821831c
commit
ee7ce3954a
3 changed files with 11 additions and 5 deletions
|
@ -2,5 +2,7 @@ import { defineProperties } from '@electron/internal/common/define-properties'
|
|||
import { commonModuleList } from '@electron/internal/common/api/module-list'
|
||||
import { browserModuleList } from '@electron/internal/browser/api/module-list'
|
||||
|
||||
defineProperties(exports, commonModuleList)
|
||||
defineProperties(exports, browserModuleList)
|
||||
module.exports = {}
|
||||
|
||||
defineProperties(module.exports, commonModuleList)
|
||||
defineProperties(module.exports, browserModuleList)
|
||||
|
|
|
@ -2,5 +2,7 @@ import { defineProperties } from '@electron/internal/common/define-properties'
|
|||
import { commonModuleList } from '@electron/internal/common/api/module-list'
|
||||
import { rendererModuleList } from '@electron/internal/renderer/api/module-list'
|
||||
|
||||
defineProperties(exports, commonModuleList)
|
||||
defineProperties(exports, rendererModuleList)
|
||||
module.exports = {}
|
||||
|
||||
defineProperties(module.exports, commonModuleList)
|
||||
defineProperties(module.exports, rendererModuleList)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import { defineProperties } from '@electron/internal/common/define-properties'
|
||||
import { moduleList } from '@electron/internal/sandboxed_renderer/api/module-list'
|
||||
|
||||
defineProperties(exports, moduleList)
|
||||
module.exports = {}
|
||||
|
||||
defineProperties(module.exports, moduleList)
|
||||
|
|
Loading…
Reference in a new issue