fix: preload script in tauri should not have export

This commit is contained in:
linonetwo committed 2023-02-08 23:16:12 +08:00
1 parent f01e0cd733
commit 5176d57d28
3 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"build": { "build": {
"beforeDevCommand": "pnpm dev:prerequisite", "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", "devPath": "http://localhost:8080",
"distDir": "../dist", "distDir": "../dist",
"withGlobalTauri": false "withGlobalTauri": false
-9
View File
@@ -16,12 +16,3 @@ function setEnvironmentVariables() {
} }
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 {};