fix: preload script in tauri should not have export
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -16,12 +16,3 @@ function setEnvironmentVariables() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setEnvironmentVariables();
|
setEnvironmentVariables();
|
||||||
|
|
||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
CLIENT_APP?: boolean;
|
|
||||||
__editoVersion?: string;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export {};
|
|
||||||
|
|||||||
8
client-app/src/preload/type.ts
Normal file
8
client-app/src/preload/type.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
declare global {
|
||||||
|
interface Window {
|
||||||
|
CLIENT_APP?: boolean;
|
||||||
|
__editoVersion?: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export {};
|
||||||
Reference in New Issue
Block a user