@conecli/cone-render 0.8.36 → 0.9.1-shop2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +7 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/common/wxappApi.ts +1 -1
  8. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  9. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  11. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  12. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  13. package/dist/components/base/Skeleton/index.tsx +1 -1
  14. package/dist/components/remoteFloorItem.tsx +1 -1
  15. package/dist/interface/common.ts +1 -1
  16. package/dist/jumpEventReport/base.ts +1 -1
  17. package/dist/jumpEventReport/web.base.ts +1 -1
  18. package/dist/jumpEventReport/web.jd.ts +1 -1
  19. package/dist/utils/h5Utils.ts +1 -1
  20. package/dist/utils/index.h5.ts +1 -1
  21. package/dist/utils/index.ts +1 -1
  22. package/dist/utils/index.weapp.ts +1 -1
  23. package/dist/utils/taroRenderUtil.ts +1 -0
  24. package/dist/utils/utils.ts +1 -1
  25. package/dist/wxapp/api/helper.js +1 -0
  26. package/dist/wxapp/components/launch-app/index.js +1 -0
  27. package/dist/wxapp/components/launch-app/index.json +5 -0
  28. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  29. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  30. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  31. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  32. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  33. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  34. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  35. package/package.json +45 -32
  36. package/dist/components/base/Skeleton/old.tsx +0 -1
@@ -1 +1 @@
1
- import {
2
1
  isApp,
3
2
  isIOS,
4
3
  getAppVersion,
5
4
  version,
6
5
  getUUID,
7
6
  getUrlQuery,
8
7
  assign,
9
8
  isString,
10
9
  isObject,
11
10
  serialize,
12
11
  isAndroid, versionCompare,
13
12
  CHANNEL_TYPE,
14
13
  JDShopViewBusinessPathType,
15
14
  JDShopViewBusinessPathList,
16
15
  SECTION_HOME_TAB_NAME_TYPE,
17
16
  parseQueryUrlString(window?.location?.href ?? ''),
18
17
  try {
19
18
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
20
19
  } catch (e) {
21
20
  return {}
22
21
  }
23
22
  isWxMiniH5View && urlCookie['wxapp_type'] == '1'
24
23
  if (isJdApp) {
25
24
  isIosDevice
26
25
  ? e && e.stopPropagation()
27
26
  : androidDeviceStopNativeScrollEvent(state)
28
27
  }
29
28
  isJdApp &&
30
29
  isAndroidDevice &&
31
30
  window?.JdAndroid &&
32
31
  window?.JdAndroid.requestEvent(state)
33
32
  if (isH5AndJdShopView) {
34
33
  return (
35
34
  CHANNEL_TYPE[currentChannel] ||
36
35
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
37
36
  )
38
37
  }
39
38
  return null
40
39
  isH5 && ['/app/home', '/app/classify', '/member/shopcard'].includes(urlPathname)
41
40
  const getCustomObj = {
42
41
  type: 1,
43
42
  code: 'all',
44
43
  cost1: 1,
45
44
  ...customObj
46
45
  }
47
46
  try {
48
47
  window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
49
48
  } catch (e) {}
49
+ import {
50
50
  isApp,
51
51
  isIOS,
52
52
  getAppVersion,
53
53
  version,
54
54
  getUUID,
55
55
  getUrlQuery,
56
56
  assign,
57
57
  isString,
58
58
  isObject,
59
59
  serialize,
60
60
  isAndroid, versionCompare,
61
61
  CHANNEL_TYPE,
62
62
  JDShopViewBusinessPathType,
63
63
  JDShopViewBusinessPathList,
64
64
  SECTION_HOME_TAB_NAME_TYPE,
65
65
  SECTION_HOME_TAB_TYPE,
66
66
  parseQueryUrlString(window?.location?.href ?? ''),
67
67
  try {
68
68
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
69
69
  } catch (e) {
70
70
  return {}
71
71
  }
72
72
  isWxMiniH5View && urlCookie['wxapp_type'] == '1'
73
73
  if (isJdApp) {
74
74
  isIosDevice
75
75
  ? e && e.stopPropagation()
76
76
  : androidDeviceStopNativeScrollEvent(state)
77
77
  }
78
78
  isJdApp &&
79
79
  isAndroidDevice &&
80
80
  window?.JdAndroid &&
81
81
  window?.JdAndroid.requestEvent(state)
82
82
  if (isH5AndJdShopView) {
83
83
  return (
84
84
  CHANNEL_TYPE[currentChannel] ||
85
85
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
86
86
  )
87
87
  }
88
88
  return null
89
89
  isH5 && ['/app/home', '/app/classify', '/member/shopcard'].includes(urlPathname)
90
90
  const getCustomObj = {
91
91
  type: 1,
92
92
  code: 'all',
93
93
  cost1: 1,
94
94
  ...customObj
95
95
  }
96
96
  try {
97
97
  window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
98
98
  } catch (e) {}
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  nativePageShowToast, ToastAndroidType,
3
2
  ToastIosType,
4
3
  getAppChannelType, isAndroidDevice, isH5AndJdShopView, isChartH5,
5
4
  isH5AndJdShopViewNativeScroll, isIosDevice, isJdAndAndroidDevice, isJdAndIosDevice, isJdApp,
6
5
  isWxApp, isWxMiniH5View, isH5AndJingGouMini, urlCookie,
7
6
  sgmCustomReport, isMemberPage, isH5AndJdShopViewH5Scroll
8
7
  addHttps,
9
8
  clearTaroStorageKey,
10
9
  countStringify,
11
10
  dateFormat,
12
11
  dealAddress,
13
12
  dealShopContentData as originDealShopContentData,
14
13
  debounce,
15
14
  filterUrlQueryData,
16
15
  formatTabActiveMenuType,
17
16
  getQualityImage,
18
17
  getTaroStorageKeyValue,
19
18
  getWxAppCookieStr,
20
19
  isH5,
21
20
  isJdMin,
22
21
  isWxMin,
23
22
  isWxMinAndWxapp,
24
23
  lodashThrottle,
25
24
  objectToUrlEncode,
26
25
  parseQueryUrlString,
27
26
  removeTaroStorageKey,
28
27
  setLowSmallPicUrl,
29
28
  setTaroStorage,
30
29
  showFailToast,
31
30
  showNormalToast,
32
31
  showSuccessToast,
33
32
  sliceArrToChunkList,
34
33
  throttle,
35
34
  windowWidth: window.innerWidth,
36
35
  containerWidth: buildType === BUILD_TYPE.CLASSIFY ? window.innerWidth - 100 : window.innerWidth,
37
36
  screenWidth: window.innerWidth,
38
37
  platform: '',
39
38
  model: '',
40
39
  system: '',
41
40
  getSystemInfo.windowWidth = getSystemInfo.screenWidth
42
41
  const params = Object.assign(
43
42
  {},
44
43
  {
45
44
  title: '',
46
45
  duration: 1500,
47
46
  },
48
47
  options,
49
48
  )
50
49
  params.duration = params.duration / 1000
51
50
  if (isJdApp && isH5AndJdShopView) {
52
51
  const showSuccessType = isIosDevice
53
52
  ? ToastIosType.SUCCESS
54
53
  : ToastAndroidType.SUCCESS
55
54
  const duration = isAndroidDevice ? 0 : params.duration
56
55
  nativePageShowToast(options.title, showSuccessType, duration)
57
56
  console.log('执行原生toast success')
58
57
  } else {
59
58
  showSuccessToast(options)
60
59
  }
61
60
  const params = Object.assign(
62
61
  {},
63
62
  {
64
63
  title: '',
65
64
  duration: 1500,
66
65
  },
67
66
  options,
68
67
  )
69
68
  params.duration = params.duration / 1000
70
69
  console.log(`isJdApp${isJdApp}`)
71
70
  if (isJdApp && isH5AndJdShopView) {
72
71
  const showSuccessType = isIosDevice
73
72
  ? ToastIosType.FAIL
74
73
  : ToastAndroidType.FAIL
75
74
  const duration = isAndroidDevice ? 0 : params.duration
76
75
  nativePageShowToast(options.title, showSuccessType, duration)
77
76
  console.log('执行原生toast fail')
78
77
  } else {
79
78
  console.log('执行H5 toast fail')
80
79
  showFailToast(options)
81
80
  }
82
81
  const params = Object.assign(
83
82
  {},
84
83
  {
85
84
  title: '',
86
85
  duration: 1500,
87
86
  },
88
87
  options,
89
88
  )
90
89
  params.duration = params.duration / 1000
91
90
  if (isJdApp) {
92
91
  const showSuccessType = isIosDevice
93
92
  ? ToastIosType.NORMAL
94
93
  : ToastAndroidType.NORMAL
95
94
  const duration = isAndroidDevice ? 0 : params.duration
96
95
  nativePageShowToast(options.title, showSuccessType, duration)
97
96
  } else {
98
97
  showNormalToast(options)
99
98
  }
100
99
  const createLoadingEle = document.createElement('div')
101
100
  createLoadingEle.id = 'J_shopLoading'
102
101
  createLoadingEle.className = `d-shop-loading flexible-center-box ${customClassName}`
103
102
  createLoadingEle.innerHTML = `<div class='d-loading-content'>
104
103
  <span class='d-shop-loading-icon'></span>
105
104
  <p class='d-shop-text'>${text}</p>
106
105
  </div>`
107
106
  const getEle = document.body ? document.body : document.getElementsByTagName('body')[0]
108
107
  console.log('获取getEle及append及appendChild方法', getEle, getEle?.append, getEle?.appendChild)
109
108
  getEle.appendChild(createLoadingEle)
110
109
  const getEle = document.getElementById('J_shopLoading')
111
110
  getEle && getEle.remove()
112
111
  num,
113
112
  widthSize = 375,
114
113
  layoutWidth = getSystemInfo.windowWidth,
115
114
  const getNum = Number(num)
116
115
  return Math.round((getNum / widthSize) * layoutWidth)
117
116
  const systemInfo: UtilsInterFace.taroGetSystemInfoSyncRes = getSystemInfo
118
117
  if (!systemInfo.system && window) {
119
118
  systemInfo.system = window.navigator.userAgent
120
119
  systemInfo.isChrome = !!systemInfo?.system.match(/chrome/i)
121
120
  }
122
121
  const isIOS = !!systemInfo?.system.match(/ios/i)
123
122
  const isAndroid = !!systemInfo?.system.match(/android/i)
124
123
  systemInfo.navBarHeight = 0
125
124
  systemInfo.statusBarHeight = 0
126
125
  systemInfo.capsulePosition = null
127
126
  systemInfo.isIOS = isIOS
128
127
  systemInfo.isAndroid = isAndroid
129
128
  return systemInfo
130
129
  return originDealShopContentData(pageData, sgmCustomReport, isvdev)
131
130
  isJdApp,
132
131
  isWxApp,
133
132
  isIosDevice,
134
133
  isAndroidDevice,
135
134
  isJdAndIosDevice,
136
135
  isJdAndAndroidDevice,
137
136
  isWxMin,
138
137
  isWxMinAndWxapp,
139
138
  isJdMin,
140
139
  isH5,
141
140
  isH5AndJdShopView,
142
141
  isChartH5,
143
142
  isH5AndJdShopViewNativeScroll,
144
143
  isH5AndJdShopViewH5Scroll,
145
144
  isH5AndJingGouMini,
146
145
  isWxMiniH5View,
147
146
  urlCookie,
148
147
  sliceArrToChunkList,
149
148
  dealAddress,
150
149
  objectToUrlEncode,
151
150
  parseQueryUrlString,
152
151
  setLowSmallPicUrl,
153
152
  setTaroStorage,
154
153
  getTaroStorageKeyValue,
155
154
  removeTaroStorageKey,
156
155
  clearTaroStorageKey,
157
156
  getQualityImage,
158
157
  countStringify,
159
158
  getWxAppCookieStr,
160
159
  getSystemInfos,
161
160
  pxTransformFromData,
162
161
  dealShopContentDataAndReport as dealShopContentData,
163
162
  dateFormat,
164
163
  throttle,
165
164
  lodashThrottle,
166
165
  debounce,
167
166
  addHttps,
168
167
  commonShowSuccessToast as showSuccessToast,
169
168
  commonShowFailToast as showFailToast,
170
169
  commonShowNormalToast as showNormalToast,
171
170
  showShopLoading,
172
171
  hideShopLoading,
173
172
  getAppChannelType,
174
173
  formatTabActiveMenuType,
175
174
  filterUrlQueryData,
176
175
  sgmCustomReport,
177
176
  isMemberPage,
178
177
  memberFormatUtils,
179
178
  getFloorDataToDataDefines
179
+ import Taro from '@tarojs/taro'
180
180
  nativePageShowToast, ToastAndroidType,
181
181
  ToastIosType,
182
182
  getAppChannelType, isAndroidDevice, isH5AndJdShopView, isChartH5,
183
183
  isH5AndJdShopViewNativeScroll, isIosDevice, isJdAndAndroidDevice, isJdAndIosDevice, isJdApp,
184
184
  isWxApp, isWxMiniH5View, isH5AndJingGouMini, urlCookie,
185
185
  sgmCustomReport, isMemberPage, isH5AndJdShopViewH5Scroll, isAppClassifyPage
186
186
  addHttps,
187
187
  clearTaroStorageKey,
188
188
  countStringify,
189
189
  dateFormat,
190
190
  dealAddress,
191
191
  dealShopContentData as originDealShopContentData,
192
192
  debounce,
193
193
  filterUrlQueryData,
194
194
  formatTabActiveMenuType,
195
195
  getQualityImage,
196
196
  getTaroStorageKeyValue,
197
197
  getWxAppCookieStr,
198
198
  isH5,
199
199
  isJdMin,
200
200
  isWxMin,
201
201
  isWxMinAndWxapp,
202
202
  lodashThrottle,
203
203
  objectToUrlEncode,
204
204
  parseQueryUrlString,
205
205
  removeTaroStorageKey,
206
206
  setLowSmallPicUrl,
207
207
  setTaroStorage,
208
208
  showFailToast,
209
209
  showNormalToast,
210
210
  showSuccessToast,
211
211
  sliceArrToChunkList,
212
212
  throttle,
213
213
  windowWidth: window.innerWidth,
214
214
  containerWidth: buildType === BUILD_TYPE.CLASSIFY ? window.innerWidth - 100 : window.innerWidth,
215
215
  screenWidth: window.innerWidth,
216
216
  platform: '',
217
217
  model: '',
218
218
  system: '',
219
219
  getSystemInfo.windowWidth = getSystemInfo.screenWidth
220
220
  getSystemInfo['containerWidth'] = buildType === BUILD_TYPE.CLASSIFY ? getSystemInfo.screenWidth - 100 : getSystemInfo.screenWidth
221
221
  const params = Object.assign(
222
222
  {},
223
223
  {
224
224
  title: '',
225
225
  duration: 1500,
226
226
  },
227
227
  options,
228
228
  )
229
229
  params.duration = params.duration / 1000
230
230
  if (isJdApp && isH5AndJdShopView) {
231
231
  const showSuccessType = isIosDevice
232
232
  ? ToastIosType.SUCCESS
233
233
  : ToastAndroidType.SUCCESS
234
234
  const duration = isAndroidDevice ? 0 : params.duration
235
235
  nativePageShowToast(options.title, showSuccessType, duration)
236
236
  console.log('执行原生toast success')
237
237
  } else {
238
238
  showSuccessToast(options)
239
239
  }
240
240
  const params = Object.assign(
241
241
  {},
242
242
  {
243
243
  title: '',
244
244
  duration: 1500,
245
245
  },
246
246
  options,
247
247
  )
248
248
  params.duration = params.duration / 1000
249
249
  console.log(`isJdApp${isJdApp}`)
250
250
  if (isJdApp && isH5AndJdShopView) {
251
251
  const showSuccessType = isIosDevice
252
252
  ? ToastIosType.FAIL
253
253
  : ToastAndroidType.FAIL
254
254
  const duration = isAndroidDevice ? 0 : params.duration
255
255
  nativePageShowToast(options.title, showSuccessType, duration)
256
256
  console.log('执行原生toast fail')
257
257
  } else {
258
258
  console.log('执行H5 toast fail')
259
259
  showFailToast(options)
260
260
  }
261
261
  const params = Object.assign(
262
262
  {},
263
263
  {
264
264
  title: '',
265
265
  duration: 1500,
266
266
  },
267
267
  options,
268
268
  )
269
269
  params.duration = params.duration / 1000
270
270
  if (isJdApp) {
271
271
  const showSuccessType = isIosDevice
272
272
  ? ToastIosType.NORMAL
273
273
  : ToastAndroidType.NORMAL
274
274
  const duration = isAndroidDevice ? 0 : params.duration
275
275
  nativePageShowToast(options.title, showSuccessType, duration)
276
276
  } else {
277
277
  showNormalToast(options)
278
278
  }
279
279
  const createLoadingEle = document.createElement('div')
280
280
  createLoadingEle.id = 'J_shopLoading'
281
281
  createLoadingEle.className = `d-shop-loading flexible-center-box ${customClassName}`
282
282
  createLoadingEle.innerHTML = `<div class='d-loading-content'>
283
283
  <span class='d-shop-loading-icon'></span>
284
284
  <p class='d-shop-text'>${text}</p>
285
285
  </div>`
286
286
  const getEle = document.body ? document.body : document.getElementsByTagName('body')[0]
287
287
  console.log('获取getEle及append及appendChild方法', getEle, getEle?.append, getEle?.appendChild)
288
288
  getEle.appendChild(createLoadingEle)
289
289
  const getEle = document.getElementById('J_shopLoading')
290
290
  getEle && getEle.remove()
291
291
  num,
292
292
  widthSize = 375,
293
293
  layoutWidth = getSystemInfo.windowWidth,
294
294
  const getNum = Number(num)
295
295
  return Math.round((getNum / widthSize) * layoutWidth)
296
296
  const systemInfo: UtilsInterFace.taroGetSystemInfoSyncRes = getSystemInfo
297
297
  if (!systemInfo.system && window) {
298
298
  systemInfo.system = window.navigator.userAgent
299
299
  systemInfo.isChrome = !!systemInfo?.system.match(/chrome/i)
300
300
  }
301
301
  const isIOS = !!systemInfo?.system.match(/ios/i)
302
302
  const isAndroid = !!systemInfo?.system.match(/android/i)
303
303
  systemInfo.navBarHeight = 0
304
304
  systemInfo.statusBarHeight = 0
305
305
  systemInfo.capsulePosition = null
306
306
  systemInfo.isIOS = isIOS
307
307
  systemInfo.isAndroid = isAndroid
308
308
  return systemInfo
309
309
  return originDealShopContentData(pageData, sgmCustomReport, isvdev)
310
310
  isJdApp,
311
311
  isWxApp,
312
312
  isIosDevice,
313
313
  isAndroidDevice,
314
314
  isJdAndIosDevice,
315
315
  isJdAndAndroidDevice,
316
316
  isWxMin,
317
317
  isWxMinAndWxapp,
318
318
  isJdMin,
319
319
  isH5,
320
320
  isH5AndJdShopView,
321
321
  isChartH5,
322
322
  isH5AndJdShopViewNativeScroll,
323
323
  isH5AndJdShopViewH5Scroll,
324
324
  isH5AndJingGouMini,
325
325
  isWxMiniH5View,
326
326
  urlCookie,
327
327
  sliceArrToChunkList,
328
328
  dealAddress,
329
329
  objectToUrlEncode,
330
330
  parseQueryUrlString,
331
331
  setLowSmallPicUrl,
332
332
  setTaroStorage,
333
333
  getTaroStorageKeyValue,
334
334
  removeTaroStorageKey,
335
335
  clearTaroStorageKey,
336
336
  getQualityImage,
337
337
  countStringify,
338
338
  getWxAppCookieStr,
339
339
  getSystemInfos,
340
340
  pxTransformFromData,
341
341
  dealShopContentDataAndReport as dealShopContentData,
342
342
  dateFormat,
343
343
  throttle,
344
344
  lodashThrottle,
345
345
  debounce,
346
346
  addHttps,
347
347
  commonShowSuccessToast as showSuccessToast,
348
348
  commonShowFailToast as showFailToast,
349
349
  commonShowNormalToast as showNormalToast,
350
350
  showShopLoading,
351
351
  hideShopLoading,
352
352
  getAppChannelType,
353
353
  formatTabActiveMenuType,
354
354
  filterUrlQueryData,
355
355
  sgmCustomReport,
356
356
  isMemberPage,
357
357
  memberFormatUtils,
358
358
  getFloorDataToDataDefines,
359
359
  isAppClassifyPage
@@ -1 +1 @@
1
- import {
2
1
  isChartH5,
3
2
  isH5AndJdShopViewH5Scroll,
4
3
  isMemberPage,
5
4
  sgmCustomReport
6
5
  isChartH5,
7
6
  isH5AndJdShopViewH5Scroll,
8
7
  isH5AndJingGouMini,
9
8
  urlCookie,
10
9
  isMemberPage,
10
+ import {
11
11
  isChartH5,
12
12
  isH5AndJdShopViewH5Scroll,
13
13
  isMemberPage,
14
14
  isChartH5,
15
15
  isH5AndJdShopViewH5Scroll,
16
16
  isH5AndJingGouMini,
17
17
  urlCookie,
18
18
  isMemberPage,
@@ -1 +1 @@
1
- import {
2
1
  isChartH5,
3
2
  isH5AndJdShopViewH5Scroll,
4
3
  sgmCustomReport,
5
4
  isMemberPage
6
5
  isH5AndJdShopViewH5Scroll,
7
6
  isH5AndJingGouMini,
8
7
  urlCookie,
9
8
  isMemberPage,
9
+ import {
10
10
  isChartH5,
11
11
  isH5AndJdShopViewH5Scroll,
12
12
  sgmCustomReport,
13
13
  isMemberPage,
14
14
  isAppClassifyPage
15
15
  isH5AndJdShopViewH5Scroll,
16
16
  isH5AndJingGouMini,
17
17
  urlCookie,
18
18
  isMemberPage,
19
19
  isAppClassifyPage
@@ -0,0 +1 @@
1
+ export enum TaroRenderVersion {
2
  VERSION_OLD = 0,
1
3
  VERSION_NEW = 1,
2
4
  let result = modularPackResult?.bundleUrl || ''
3
5
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
4
6
  result = modularPackResult?.bundleUrlV2 || ''
5
7
  }
6
8
  console.log(
7
9
  'getBundleUrl taroRenderVersion:' +
8
10
  window?.taroRenderVersion +
9
11
  ',bundleUrl:' +
10
12
  result,
11
13
  )
12
14
  return result
13
15
  let result = modularPackResult?.bundleFileName || ''
14
16
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
15
17
  result = modularPackResult?.bundleFileNameV2 || ''
16
18
  }
17
19
  console.log(
18
20
  'getBundleUrl taroRenderVersion:' +
19
21
  window?.taroRenderVersion +
20
22
  ',bundleFileName:' +
21
23
  result,
22
24
  )
23
25
  return result
24
26
  if (typeof modularPackResult === 'string') {
25
27
  return JSON.parse(modularPackResult)
26
28
  } else if (modularPackResult) {
27
29
  return modularPackResult
28
30
  } else {
29
31
  return {}
30
32
  }