diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 76a0cec..45950bb 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -180,7 +180,7 @@ export function generateJSONFileContent(version: string, silence = false) { } export function generateJsFileContent(fileSource: string, version: string, options: Options) { - const { logVersion } = options + const { logVersion = true } = options let content = `${fileSource} window.__checkUpdateSetup__(${JSON.stringify(options)});` if (logVersion) {