build: improve webpack config (#3561)

This commit is contained in:
Alex Yang
2023-08-03 16:05:46 -07:00
committed by GitHub
parent f2ac4c7eda
commit 0c16eb1189
21 changed files with 365 additions and 234 deletions
-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