fix: preload script in tauri should not have export

This commit is contained in:
linonetwo
2023-02-08 23:16:12 +08:00
parent f01e0cd733
commit 5176d57d28
3 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"build": {
"beforeDevCommand": "pnpm dev:prerequisite",
"beforeBuildCommand": "pnpm build:web && pnpm build:affine && pnpm build:preload",
"beforeBuildCommand": "pnpm build:web && pnpm build:preload && pnpm build:affine && pnpm build:preload",
"devPath": "http://localhost:8080",
"distDir": "../dist",
"withGlobalTauri": false
-9
View File
@@ -16,12 +16,3 @@ function setEnvironmentVariables() {
}
setEnvironmentVariables();
declare global {
interface Window {
CLIENT_APP?: boolean;
__editoVersion?: string;
}
}
export {};
+8
View File
@@ -0,0 +1,8 @@
declare global {
interface Window {
CLIENT_APP?: boolean;
__editoVersion?: string;
}
}
export {};