Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webapp/common-typescript/@dbeaver/cli/src/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 DBeaver Corp and others
* Copyright (C) 2020-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
Expand Down
10 changes: 6 additions & 4 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@
"mobx-react-lite": "^4",
"glob": "^13",
"tar": ">=7.5.11",
"lodash": ">=4.17.23",
"@isaacs/brace-expansion": ">=5.0.1",
"lodash": ">=4.18.0",
"@isaacs/brace-expansion": ">=5.0.5",
"axios": ">= 1.13.5",
"minimatch": ">=10.2.3",
"rollup": ">=4.59.0",
"koa": ">=2.16.4",
"immutable": ">=4.3.8",
"serialize-javascript": ">=7.0.3",
"serialize-javascript": ">=7.0.5",
"flatted": ">=3.4.2",
"picomatch": ">=2.3.2",
"happy-dom": ">=20.8.8"
"happy-dom": ">=20.8.8",
"vite": ">=7.3.2",
"yaml": ">=2.8.3"
},
"scripts": {
"test": "dbeaver-test",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 DBeaver Corp and others
* Copyright (C) 2020-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@
import tailwindcss from '@tailwindcss/vite';
import legacy from '@vitejs/plugin-legacy';

export function baseConfigurationPlugin(mode: string, packageJson: any): PluginOption {

Check warning on line 21 in webapp/packages/product-base/src/baseConfigurationPlugin.ts

View workflow job for this annotation

GitHub Actions / Frontend / Lint

Argument 'packageJson' should be typed with a non-any type
const isProduction = mode === 'production';
const envServer = process.env['server'];
const productVersion = isProduction ? withTimestamp(packageJson.version) : packageJson.version;
Expand Down
26 changes: 13 additions & 13 deletions webapp/packages/product-base/src/manualChunks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 DBeaver Corp and others
* Copyright (C) 2020-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,43 +28,43 @@ export const manualChunks = (): PluginOption => [
// Use a non-recursive approach to detect circular dependencies
const visited = new Set<string>();
const queue = [moduleId];

// Track which modules we've already determined to be sync
const syncModules = new Set<string>();

while (queue.length > 0) {
const currentId = queue.shift()!;

// Skip if we've already processed this module in this traversal
if (visited.has(currentId)) {
continue;
}

visited.add(currentId);

const info = getModuleInfo(currentId);

// No module info available, assume it's sync as a fallback
if (!info) {
syncModules.add(currentId);
continue;
}

// Entry modules are always sync
if (info.isEntry) {
syncModules.add(currentId);
continue;
}

// If there are no importers at all, it might be dynamically imported somewhere
if (!info.importers || info.importers.length === 0) {
// Not marking as sync
continue;
}

// If dynamicImporters is undefined or not an array, handle safely
const dynamicImports = Array.isArray(info.dynamicImporters) ? info.dynamicImporters : [];

// Check if any importer imports this module statically
let hasStaticImporter = false;
for (const importer of info.importers) {
Expand All @@ -73,12 +73,12 @@ export const manualChunks = (): PluginOption => [
break;
}
}

if (hasStaticImporter) {
syncModules.add(currentId);
}
}

return syncModules.has(moduleId);
}

Expand Down
Loading
Loading