Skip to content

Commit

Permalink
Fix: treat kraken as web (#5319)
Browse files Browse the repository at this point in the history
* Update package.json

* Fix: treat kraken as web

* Remove unused variable `isKraken`
  • Loading branch information
wssgcg1213 authored Jun 8, 2022
1 parent 65b2650 commit 82543dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/create-app-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -50,4 +50,4 @@
"@types/rax": "^1.0.6",
"react": "^17.0.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/create-app-shared/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 82543dd

Please sign in to comment.