File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
packages/driver-universal Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog
2
2
3
+ ## v3.5.0
4
+
5
+ - Chore: use ` import ` instead of ` require ` in entry file
6
+
3
7
## v3.4.0
4
8
5
9
- Chore: remove kraken driver, using web instead.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " driver-universal" ,
3
- "version" : " 3.4 .0" ,
3
+ "version" : " 3.5 .0" ,
4
4
"description" : " Driver for Universal App." ,
5
5
"license" : " BSD-3-Clause" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -8,13 +8,17 @@ import {
8
8
isKuaiShouMiniProgram
9
9
} from 'universal-env' ;
10
10
11
+ import driverWeex from './weex' ;
12
+ import driverWeb from './web' ;
13
+ import driverMiniApp from './miniapp' ;
14
+
11
15
let currentDriver ;
12
16
if ( isWeex ) {
13
- currentDriver = require ( './weex' ) . default ;
17
+ currentDriver = driverWeex ;
14
18
} else if ( isWeb ) {
15
- currentDriver = require ( './web' ) . default ;
19
+ currentDriver = driverWeb ;
16
20
} else if ( isMiniApp || isWeChatMiniProgram || isByteDanceMicroApp || isBaiduSmartProgram || isKuaiShouMiniProgram ) {
17
- currentDriver = require ( './miniapp' ) . default ;
21
+ currentDriver = driverMiniApp ;
18
22
}
19
23
20
24
export default currentDriver ;
Original file line number Diff line number Diff line change @@ -166,10 +166,6 @@ buildCorePackages({
166
166
packageName : 'driver-dom' ,
167
167
name : 'DriverDom'
168
168
} ) ;
169
- buildCorePackages ( {
170
- packageName : 'driver-kraken' ,
171
- name : 'DriverKraken'
172
- } ) ;
173
169
buildCorePackages ( {
174
170
packageName : 'driver-weex' ,
175
171
name : 'DriverKraken'
You can’t perform that action at this time.
0 commit comments