2020-05-02 16:14:47 +00:00
|
|
|
/// <reference types="@ccms/nashorn" />
|
2020-06-23 07:51:55 +00:00
|
|
|
import '@ccms/nodejs'
|
2020-05-02 16:14:47 +00:00
|
|
|
import i18n from '@ccms/i18n'
|
2021-03-26 08:17:13 +00:00
|
|
|
let polyfillStartTime = new Date().getTime()
|
2020-06-02 10:01:56 +00:00
|
|
|
i18n.initialize()
|
2021-03-26 08:17:13 +00:00
|
|
|
console.i18n("ms.polyfill.initialize")
|
2020-12-17 09:00:00 +00:00
|
|
|
import './es5-ext'
|
|
|
|
import './node-shim'
|
|
|
|
import 'core-js'
|
2020-06-17 10:36:25 +00:00
|
|
|
//@ts-ignore
|
|
|
|
process.on('exit', () => require.disable())
|
2020-02-09 14:06:45 +00:00
|
|
|
global.setGlobal('Proxy', require('./proxy').Proxy)
|
|
|
|
global.setGlobal('XMLHttpRequest', require('./xml-http-request').XMLHttpRequest)
|
|
|
|
global.setGlobal('Blob', require('blob-polyfill').Blob)
|
2021-03-26 08:17:13 +00:00
|
|
|
console.i18n("ms.polyfill.completed", { time: (new Date().getTime() - polyfillStartTime) / 1000 })
|