File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2424 "debug" : " ^3.1.0" ,
2525 "es6-promise" : " ^4.0.5" ,
2626 "eventemitter3" : " ^2.0.3" ,
27- "leancloud-realtime" : " ^3.5.0 " ,
28- "leancloud-realtime-plugin-live-query" : " ^1.0 .0" ,
27+ "leancloud-realtime" : " ^4.0.0-beta.2 " ,
28+ "leancloud-realtime-plugin-live-query" : " ^1.1 .0" ,
2929 "localstorage-memory" : " ^1.0.1" ,
3030 "md5" : " ^2.0.0" ,
3131 "superagent" : " ^3.3.1" ,
5555 "qiniu" : " ^6.1.11" ,
5656 "should" : " ^11.1.0" ,
5757 "typescript" : " ^2.4.1" ,
58- "weapp-polyfill" : " ^2.0.1 " ,
58+ "weapp-polyfill" : " ^3.1.2 " ,
5959 "webpack" : " ^2.2.0-rc.3" ,
6060 "webpack-strip-block" : " ^0.2.0"
6161 },
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ AV.init = function init(options, ...params) {
103103 } else if ( AV . _sharedConfig . liveQueryRealtime ) {
104104 AV . _config . realtime = new AV . _sharedConfig . liveQueryRealtime ( {
105105 appId,
106+ appKey,
106107 region,
107108 } ) ;
108109 }
Original file line number Diff line number Diff line change 1+ const webpack = require ( 'webpack' ) ;
12const { create, entry, name } = require ( './common' ) ;
23
34const config = create ( ) ;
@@ -7,5 +8,9 @@ config.entry = {
78 [ `${ name } -weapp-min` ] : entry ,
89} ;
910config . resolve . aliasFields = [ 'weapp' , 'browser' ] ;
11+ config . plugins . push ( new webpack . BannerPlugin ( {
12+ banner : 'var window={};var XMLHttpRequest;' ,
13+ raw : true ,
14+ } ) ) ;
1015
1116module . exports = config ;
You can’t perform that action at this time.
0 commit comments