mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 00:26:51 +08:00
fix: preload script in tauri should not have export
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -16,12 +16,3 @@ function setEnvironmentVariables() {
|
||||
}
|
||||
|
||||
setEnvironmentVariables();
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
CLIENT_APP?: boolean;
|
||||
__editoVersion?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
CLIENT_APP?: boolean;
|
||||
__editoVersion?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user