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 +} diff --git a/packages/create-app-shared/src/index.ts b/packages/create-app-shared/src/index.ts index 80eac0bc91..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'; @@ -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;