build: improve webpack config (#3561)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-08-03 23:05:46 +00:00
1 parent f2ac4c7eda
commit 0c16eb1189
21 files changed
+365 -234

No files matched your search

-4
View File
@@ -206,10 +206,6 @@ export function setupGlobal() {
}
globalThis.environment = environment;
if (environment.isBrowser) {
globalThis.editorVersion = global.editorVersion;
}
let prefixUrl: string;
if (!isBrowser || isDesktop) {
// SSR or Desktop