mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: optimize injectable
This commit is contained in:
1 parent
25444f69f0
commit
7343c596e9
9 files changed
+64
-64
No files matched your search
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user