formatting

This commit is contained in:
proddy
2024-11-23 10:49:45 +01:00
parent d60e42a483
commit 2276490c67
2 changed files with 16 additions and 8 deletions

View File

@@ -118,9 +118,7 @@ export default defineConfig(({ command, mode }) => {
manualChunks(id: string) {
if (id.includes('node_modules')) {
// creating a chunk to react routes deps. Reducing the vendor chunk size
if (
id.includes('react-router')
) {
if (id.includes('react-router')) {
return '@react-router';
}
return 'vendor';

View File

@@ -216,8 +216,18 @@ function check_upgrade(version: string) {
if (version) {
const dev_version = version.split(',')[0];
const stable_version = version.split(',')[1];
console.log("latest dev version: " + dev_version + ", latest stable version: " + stable_version);
console.log('Version upgrade check from version ' + THIS_VERSION + ', upgradable: ' + VERSION_IS_UPGRADEABLE);
console.log(
'latest dev version: ' +
dev_version +
', latest stable version: ' +
stable_version
);
console.log(
'Version upgrade check from version ' +
THIS_VERSION +
', upgradable: ' +
VERSION_IS_UPGRADEABLE
);
data = {
emsesp_version: THIS_VERSION,
upgradeable: VERSION_IS_UPGRADEABLE