Skip to content

Commit

Permalink
fix: make process enumerable so it can be re-exported
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Feb 20, 2020
1 parent 48caf98 commit 19c246e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export function getGlobal<T = any>(name: string): T {

// Get the process object in browser.
Object.defineProperty(exports, 'process', {
enumerable: true,
get: () => exports.getGlobal('process')
})

Expand All @@ -351,4 +352,4 @@ browserModules
.map((m) => m.name)
.forEach(addBuiltinProperty)
*/
*/

0 comments on commit 19c246e

Please sign in to comment.