feat: optimize plugin scan & load

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-06-23 15:51:55 +08:00
parent 18df821049
commit 4750f31b6e
13 changed files with 127 additions and 63 deletions

View File

@ -15,6 +15,7 @@
},
"dependencies": {
"@ccms/i18n": "^0.8.0",
"@ccms/nodejs": "^0.8.0",
"@ccms/nashorn": "^0.8.0",
"core-js": "^3.6.5"
},
@ -23,4 +24,4 @@
"rimraf": "^3.0.2",
"typescript": "^3.9.2"
}
}
}

View File

@ -1,5 +1,5 @@
/// <reference types="@ccms/nashorn" />
import '@ccms/nodejs'
import i18n from '@ccms/i18n'
let ployfillStartTime = new Date().getTime()
i18n.initialize()