Skip to content

Commit

Permalink
fix: fix process polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 5, 2022
1 parent 55f0be7 commit 05aa34f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/runtime/polyfill/process.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
// https://github.com/defunctzombie/node-process/
// @ts-ignore
import * as _process from '_process'
import _process from '../node/process/index'
import _global from './globalThis'

_global.process = _global.process || {}

// TODO: apply only non-existing keys
Object.assign(_global.process, _process)

export default _global.process
_global.process = _global.process || _process

0 comments on commit 05aa34f

Please sign in to comment.