core&ui: optimize injectable

This commit is contained in:
undefined committed 2022-09-07 20:30:44 +08:00
1 parent 25444f69f0
commit 7343c596e9
9 files changed
+64 -64

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
const versionNum = +process.version.replace(/v/gim, '').split('.')[0];
if (versionNum < 10) throw new Error('NodeJS >=10.4 required');
if (versionNum < 12) throw new Error('NodeJS >=12 required');
else if (versionNum < 14 && process.env.NODE_APP_INSTANCE === '0') {
console.warn('NodeJS version <14, startup performance will be impacted.');
}