feat: add exit hook
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
2c1eea5bc1
commit
13b04a904e
@ -7,6 +7,8 @@ console.i18n("ms.ployfill.initialize")
|
|||||||
require('./es5-ext')
|
require('./es5-ext')
|
||||||
require('./node-shim')
|
require('./node-shim')
|
||||||
require('core-js')
|
require('core-js')
|
||||||
|
//@ts-ignore
|
||||||
|
process.on('exit', () => require.disable())
|
||||||
global.setGlobal('Proxy', require('./proxy').Proxy)
|
global.setGlobal('Proxy', require('./proxy').Proxy)
|
||||||
global.setGlobal('XMLHttpRequest', require('./xml-http-request').XMLHttpRequest)
|
global.setGlobal('XMLHttpRequest', require('./xml-http-request').XMLHttpRequest)
|
||||||
global.setGlobal('Blob', require('blob-polyfill').Blob)
|
global.setGlobal('Blob', require('blob-polyfill').Blob)
|
||||||
|
Loading…
Reference in New Issue
Block a user