From 4ad4c4cf0695dd5b5732ad5480105ed22905e09d Mon Sep 17 00:00:00 2001 From: ZeroLing Date: Sat, 7 May 2022 15:02:24 +0800 Subject: [PATCH 1/3] Update package.json --- packages/create-app-shared/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-app-shared/package.json b/packages/create-app-shared/package.json index b41d07eac7..4e977c68a2 100644 --- a/packages/create-app-shared/package.json +++ b/packages/create-app-shared/package.json @@ -17,8 +17,8 @@ "exports": { ".": { "web": "./lib/web/index.js", + "kraken": "./lib/web/index.js", "weex": "./lib/weex/index.js", - "kraken": "./lib/weex/index.js", "miniapp": "./lib/miniapp/index.js", "wechat-miniprogram": "./lib/miniapp/index.js", "bytedance-microapp": "./lib/miniapp/index.js", @@ -50,4 +50,4 @@ "@types/rax": "^1.0.6", "react": "^17.0.2" } -} \ No newline at end of file +} From cb802bb979b832e927a967b83d3d11bf360a51de Mon Sep 17 00:00:00 2001 From: ZeroLing Date: Sat, 7 May 2022 15:03:53 +0800 Subject: [PATCH 2/3] Fix: treat kraken as web --- packages/create-app-shared/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-app-shared/src/index.ts b/packages/create-app-shared/src/index.ts index 80eac0bc91..619b2bbc1a 100644 --- a/packages/create-app-shared/src/index.ts +++ b/packages/create-app-shared/src/index.ts @@ -35,7 +35,7 @@ if (isMiniAppPlatform) { emitLifeCycles = emitMiniappLifeCycles; withPageLifeCycle = miniappWithPageLifeCycle; createUsePageLifeCycle = miniappCreateUsePageLifeCycle; -} else if (isWeex || isKraken) { +} else if (isWeex) { createHistory = createWeexHistory; initAppLifeCycles = initWeexLifeCycles; initHistory = initWeexHistory; From 07213ff3d7a6a33fd2c4a25665054dba89e04a8b Mon Sep 17 00:00:00 2001 From: ZeroLing Date: Tue, 10 May 2022 11:53:02 +0800 Subject: [PATCH 3/3] Remove unused variable `isKraken` --- packages/create-app-shared/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-app-shared/src/index.ts b/packages/create-app-shared/src/index.ts index 619b2bbc1a..ba023e8837 100644 --- a/packages/create-app-shared/src/index.ts +++ b/packages/create-app-shared/src/index.ts @@ -1,5 +1,5 @@ /* eslint-disable import/no-mutable-exports */ -import { isMiniAppPlatform, isWeex, isKraken } from './env'; +import { isMiniAppPlatform, isWeex } from './env'; import miniappCreateWithRouter from './miniapp/miniappCreateWithRouter'; import { addAppLifeCycle } from './appLifeCycles'; import { withPageLifeCycle as defaultWithPageLifeCycle, createUsePageLifeCycle as defaultCreateUsePageLifeCycle } from './pageLifeCycles';