miniprogram-ci 2.1.34 → 2.1.35

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 (514) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +2 -0
  3. package/dist/@types/common/code-analyse/index.d.ts +2 -0
  4. package/dist/@types/config/config.d.ts +1 -1
  5. package/dist/@types/modules/corecompiler/original/workerThread/config.d.ts +4 -3
  6. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +1 -0
  7. package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -0
  8. package/dist/@types/schema/@types/appjson.d.ts +3 -0
  9. package/dist/@types/utils/asar.d.ts +1 -0
  10. package/dist/@types/utils/customError.d.ts +1 -1
  11. package/dist/@types/utils/packOptionsHelper.d.ts +1 -1
  12. package/dist/common/code-analyse/index.js +1 -1
  13. package/dist/config/config.js +1 -1
  14. package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
  15. package/dist/modules/corecompiler/original/workerThread/worker.js +1 -1
  16. package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -1
  17. package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
  18. package/dist/modules/corecompiler/summer/plugins/script_task/swc_task.js +1 -1
  19. package/dist/modules/corecompiler/summer/worker.js +1 -1
  20. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  21. package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
  22. package/dist/schema/dist/app.js +18 -0
  23. package/dist/services/common/getservice.js +1 -1
  24. package/dist/services/multiTaskManager/electron/multiTaskManager.js +1 -1
  25. package/dist/utils/asar.js +1 -0
  26. package/dist/utils/codesign.js +1 -1
  27. package/dist/utils/customError.js +1 -1
  28. package/dist/utils/packOptionsHelper.js +1 -1
  29. package/dist/utils/swc_config.js +1 -1
  30. package/dist/vendor/swc_runtime/_apply_decorated_descriptor.js +1 -1
  31. package/dist/vendor/swc_runtime/_apply_decs_2203_r.js +1 -1
  32. package/dist/vendor/swc_runtime/_array_like_to_array.js +1 -1
  33. package/dist/vendor/swc_runtime/_array_with_holes.js +1 -1
  34. package/dist/vendor/swc_runtime/_array_without_holes.js +1 -1
  35. package/dist/vendor/swc_runtime/_assert_this_initialized.js +1 -1
  36. package/dist/vendor/swc_runtime/_async_generator.js +1 -1
  37. package/dist/vendor/swc_runtime/_async_generator_delegate.js +1 -1
  38. package/dist/vendor/swc_runtime/_async_iterator.js +1 -1
  39. package/dist/vendor/swc_runtime/_async_to_generator.js +1 -1
  40. package/dist/vendor/swc_runtime/_await_async_generator.js +1 -1
  41. package/dist/vendor/swc_runtime/_await_value.js +1 -1
  42. package/dist/vendor/swc_runtime/_call_super.js +1 -0
  43. package/dist/vendor/swc_runtime/_check_private_redeclaration.js +1 -1
  44. package/dist/vendor/swc_runtime/_class_apply_descriptor_destructure.js +1 -1
  45. package/dist/vendor/swc_runtime/_class_apply_descriptor_get.js +1 -1
  46. package/dist/vendor/swc_runtime/_class_apply_descriptor_set.js +1 -1
  47. package/dist/vendor/swc_runtime/_class_apply_descriptor_update.js +1 -1
  48. package/dist/vendor/swc_runtime/_class_call_check.js +1 -1
  49. package/dist/vendor/swc_runtime/_class_check_private_static_access.js +1 -1
  50. package/dist/vendor/swc_runtime/_class_check_private_static_field_descriptor.js +1 -1
  51. package/dist/vendor/swc_runtime/_class_extract_field_descriptor.js +1 -1
  52. package/dist/vendor/swc_runtime/_class_name_tdz_error.js +1 -1
  53. package/dist/vendor/swc_runtime/_class_private_field_destructure.js +1 -1
  54. package/dist/vendor/swc_runtime/_class_private_field_get.js +1 -1
  55. package/dist/vendor/swc_runtime/_class_private_field_init.js +1 -1
  56. package/dist/vendor/swc_runtime/_class_private_field_loose_base.js +1 -1
  57. package/dist/vendor/swc_runtime/_class_private_field_loose_key.js +1 -1
  58. package/dist/vendor/swc_runtime/_class_private_field_set.js +1 -1
  59. package/dist/vendor/swc_runtime/_class_private_field_update.js +1 -1
  60. package/dist/vendor/swc_runtime/_class_private_method_get.js +1 -1
  61. package/dist/vendor/swc_runtime/_class_private_method_init.js +1 -1
  62. package/dist/vendor/swc_runtime/_class_private_method_set.js +1 -1
  63. package/dist/vendor/swc_runtime/_class_static_private_field_destructure.js +1 -1
  64. package/dist/vendor/swc_runtime/_class_static_private_field_spec_get.js +1 -1
  65. package/dist/vendor/swc_runtime/_class_static_private_field_spec_set.js +1 -1
  66. package/dist/vendor/swc_runtime/_class_static_private_field_update.js +1 -1
  67. package/dist/vendor/swc_runtime/_class_static_private_method_get.js +1 -1
  68. package/dist/vendor/swc_runtime/_construct.js +1 -1
  69. package/dist/vendor/swc_runtime/_create_class.js +1 -1
  70. package/dist/vendor/swc_runtime/_create_for_of_iterator_helper_loose.js +1 -1
  71. package/dist/vendor/swc_runtime/_create_super.js +1 -1
  72. package/dist/vendor/swc_runtime/_decorate.js +1 -1
  73. package/dist/vendor/swc_runtime/_defaults.js +1 -1
  74. package/dist/vendor/swc_runtime/_define_enumerable_properties.js +1 -1
  75. package/dist/vendor/swc_runtime/_define_property.js +1 -1
  76. package/dist/vendor/swc_runtime/_dispose.js +1 -1
  77. package/dist/vendor/swc_runtime/_export_star.js +1 -1
  78. package/dist/vendor/swc_runtime/_extends.js +1 -1
  79. package/dist/vendor/swc_runtime/_get.js +1 -1
  80. package/dist/vendor/swc_runtime/_get_prototype_of.js +1 -1
  81. package/dist/vendor/swc_runtime/_identity.js +1 -1
  82. package/dist/vendor/swc_runtime/_inherits.js +1 -1
  83. package/dist/vendor/swc_runtime/_inherits_loose.js +1 -1
  84. package/dist/vendor/swc_runtime/_initializer_define_property.js +1 -1
  85. package/dist/vendor/swc_runtime/_initializer_warning_helper.js +1 -1
  86. package/dist/vendor/swc_runtime/_instanceof.js +1 -1
  87. package/dist/vendor/swc_runtime/_interop_require_default.js +1 -1
  88. package/dist/vendor/swc_runtime/_interop_require_wildcard.js +1 -1
  89. package/dist/vendor/swc_runtime/_is_native_function.js +1 -1
  90. package/dist/vendor/swc_runtime/_is_native_reflect_construct.js +1 -1
  91. package/dist/vendor/swc_runtime/_iterable_to_array.js +1 -1
  92. package/dist/vendor/swc_runtime/_iterable_to_array_limit.js +1 -1
  93. package/dist/vendor/swc_runtime/_iterable_to_array_limit_loose.js +1 -1
  94. package/dist/vendor/swc_runtime/_jsx.js +1 -1
  95. package/dist/vendor/swc_runtime/_new_arrow_check.js +1 -1
  96. package/dist/vendor/swc_runtime/_non_iterable_rest.js +1 -1
  97. package/dist/vendor/swc_runtime/_non_iterable_spread.js +1 -1
  98. package/dist/vendor/swc_runtime/_object_destructuring_empty.js +1 -1
  99. package/dist/vendor/swc_runtime/_object_spread.js +1 -1
  100. package/dist/vendor/swc_runtime/_object_spread_props.js +1 -1
  101. package/dist/vendor/swc_runtime/_object_without_properties.js +1 -1
  102. package/dist/vendor/swc_runtime/_object_without_properties_loose.js +1 -1
  103. package/dist/vendor/swc_runtime/_overload_yield.js +1 -0
  104. package/dist/vendor/swc_runtime/_possible_constructor_return.js +1 -1
  105. package/dist/vendor/swc_runtime/_read_only_error.js +1 -1
  106. package/dist/vendor/swc_runtime/_set.js +1 -1
  107. package/dist/vendor/swc_runtime/_set_prototype_of.js +1 -1
  108. package/dist/vendor/swc_runtime/_skip_first_generator_next.js +1 -1
  109. package/dist/vendor/swc_runtime/_sliced_to_array.js +1 -1
  110. package/dist/vendor/swc_runtime/_sliced_to_array_loose.js +1 -1
  111. package/dist/vendor/swc_runtime/_super_prop_base.js +1 -1
  112. package/dist/vendor/swc_runtime/_tagged_template_literal.js +1 -1
  113. package/dist/vendor/swc_runtime/_tagged_template_literal_loose.js +1 -1
  114. package/dist/vendor/swc_runtime/_throw.js +1 -1
  115. package/dist/vendor/swc_runtime/_to_array.js +1 -1
  116. package/dist/vendor/swc_runtime/_to_consumable_array.js +1 -1
  117. package/dist/vendor/swc_runtime/_to_primitive.js +1 -1
  118. package/dist/vendor/swc_runtime/_to_property_key.js +1 -1
  119. package/dist/vendor/swc_runtime/_ts_add_disposable_resource.js +1 -0
  120. package/dist/vendor/swc_runtime/_ts_decorate.js +1 -1
  121. package/dist/vendor/swc_runtime/_ts_dispose_resources.js +1 -0
  122. package/dist/vendor/swc_runtime/_ts_generator.js +1 -1
  123. package/dist/vendor/swc_runtime/_ts_metadata.js +1 -1
  124. package/dist/vendor/swc_runtime/_ts_param.js +1 -1
  125. package/dist/vendor/swc_runtime/_ts_values.js +1 -1
  126. package/dist/vendor/swc_runtime/_type_of.js +1 -1
  127. package/dist/vendor/swc_runtime/_unsupported_iterable_to_array.js +1 -1
  128. package/dist/vendor/swc_runtime/_update.js +1 -1
  129. package/dist/vendor/swc_runtime/_using.js +1 -1
  130. package/dist/vendor/swc_runtime/_using_ctx.js +1 -0
  131. package/dist/vendor/swc_runtime/_wrap_async_generator.js +1 -1
  132. package/dist/vendor/swc_runtime/_wrap_native_super.js +1 -1
  133. package/dist/vendor/swc_runtime/_write_only_error.js +1 -1
  134. package/dist/vendor/swc_runtime/index.js +1 -1
  135. package/package.json +3 -3
  136. package/dist/@types/build-server/constant.d.ts +0 -42
  137. package/dist/@types/build-server/ctxManager.d.ts +0 -2
  138. package/dist/@types/build-server/fileCacheManager.d.ts +0 -43
  139. package/dist/@types/build-server/fileTaskDriver.d.ts +0 -36
  140. package/dist/@types/build-server/subProcess.d.ts +0 -1
  141. package/dist/@types/build-server/subTaskManager.d.ts +0 -8
  142. package/dist/@types/build-server/taskDriver.d.ts +0 -68
  143. package/dist/@types/build-server/taskFactory.d.ts +0 -22
  144. package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +0 -1
  145. package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +0 -5
  146. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +0 -19
  147. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +0 -10
  148. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +0 -23
  149. package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +0 -7
  150. package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +0 -29
  151. package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +0 -44
  152. package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +0 -3
  153. package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +0 -36
  154. package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +0 -43
  155. package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +0 -10
  156. package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +0 -2
  157. package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +0 -50
  158. package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +0 -20
  159. package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +0 -25
  160. package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +0 -13
  161. package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +0 -33
  162. package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +0 -92
  163. package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +0 -17
  164. package/dist/@types/build-server/tasks/common/constants.config.d.ts +0 -549
  165. package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +0 -15
  166. package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +0 -3
  167. package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +0 -11
  168. package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +0 -35
  169. package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +0 -1
  170. package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +0 -10
  171. package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +0 -72
  172. package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +0 -16
  173. package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +0 -16
  174. package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +0 -11
  175. package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +0 -18
  176. package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +0 -17
  177. package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +0 -9
  178. package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +0 -4
  179. package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +0 -8
  180. package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
  181. package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +0 -17
  182. package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +0 -14
  183. package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +0 -13
  184. package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +0 -7
  185. package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
  186. package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
  187. package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +0 -22
  188. package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
  189. package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +0 -5
  190. package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +0 -2
  191. package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +0 -20
  192. package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +0 -5
  193. package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +0 -30
  194. package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +0 -21
  195. package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +0 -142
  196. package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +0 -3
  197. package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +0 -39
  198. package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
  199. package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +0 -2
  200. package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +0 -8
  201. package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +0 -2
  202. package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
  203. package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +0 -50
  204. package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +0 -3
  205. package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +0 -34
  206. package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +0 -11
  207. package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +0 -14
  208. package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +0 -28
  209. package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +0 -1
  210. package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +0 -1
  211. package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +0 -2
  212. package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +0 -9
  213. package/dist/@types/build-server/tasks/common/weapp.config.d.ts +0 -108
  214. package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +0 -2
  215. package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +0 -1
  216. package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +0 -8
  217. package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +0 -26
  218. package/dist/@types/build-server/testAppConfig.d.ts +0 -1
  219. package/dist/@types/build-server/testAppservice.d.ts +0 -1
  220. package/dist/@types/build-server/testInitSourceCompile.d.ts +0 -1
  221. package/dist/@types/build-server/testPageframe.d.ts +0 -1
  222. package/dist/@types/build-server/testSubProcess.d.ts +0 -1
  223. package/dist/@types/build-server/utils/fileTask.d.ts +0 -5
  224. package/dist/@types/build-server/utils/getFileOrCache.d.ts +0 -24
  225. package/dist/@types/build-server/utils/process.d.ts +0 -0
  226. package/dist/@types/build-server/utils/request.d.ts +0 -47
  227. package/dist/@types/bussinessMonitor/monitor.d.ts +0 -1
  228. package/dist/@types/modules/corecompiler/summer/pipeManager/index.d.ts +0 -6
  229. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeCPProject.d.ts +0 -17
  230. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeContext.d.ts +0 -10
  231. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeManager.d.ts +0 -12
  232. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeWorker.d.ts +0 -2
  233. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.d.ts +0 -3
  234. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.d.ts +0 -3
  235. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.d.ts +0 -3
  236. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/index.d.ts +0 -2
  237. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.d.ts +0 -4
  238. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.d.ts +0 -3
  239. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.d.ts +0 -6
  240. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.d.ts +0 -9
  241. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.d.ts +0 -12
  242. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.d.ts +0 -11
  243. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.d.ts +0 -8
  244. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.d.ts +0 -92
  245. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.d.ts +0 -1
  246. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.d.ts +0 -6
  247. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.d.ts +0 -3
  248. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.d.ts +0 -21
  249. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.d.ts +0 -40
  250. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.d.ts +0 -3
  251. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.d.ts +0 -3
  252. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.d.ts +0 -19
  253. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.d.ts +0 -15
  254. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.d.ts +0 -9
  255. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/wccPipe.d.ts +0 -3
  256. package/dist/@types/modules/corecompiler/summer/pipeManager/types.d.ts +0 -100
  257. package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +0 -4
  258. package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +0 -12
  259. package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +0 -9
  260. package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +0 -32
  261. package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +0 -18
  262. package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +0 -12
  263. package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +0 -7
  264. package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +0 -10
  265. package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +0 -13
  266. package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +0 -48
  267. package/dist/@types/modules/fullcompiler/filerules.d.ts +0 -5
  268. package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +0 -11
  269. package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +0 -11
  270. package/dist/@types/modules/fullcompiler/index.d.ts +0 -31
  271. package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +0 -10
  272. package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +0 -13
  273. package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +0 -10
  274. package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +0 -11
  275. package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +0 -21
  276. package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +0 -18
  277. package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +0 -11
  278. package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +0 -12
  279. package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +0 -3
  280. package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +0 -14
  281. package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +0 -3
  282. package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +0 -3
  283. package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +0 -14
  284. package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +0 -9
  285. package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +0 -3
  286. package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +0 -42
  287. package/dist/@types/modules/fullcompiler/utils/index.d.ts +0 -4
  288. package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +0 -23
  289. package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +0 -40
  290. package/dist/@types/modules/fullcompiler/utils/tools.d.ts +0 -15
  291. package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +0 -1
  292. package/dist/@types/project/serverProject.d.ts +0 -38
  293. package/dist/@types/services/app/server/appDirService.d.ts +0 -6
  294. package/dist/@types/services/builder/server/builder.d.ts +0 -4
  295. package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +0 -23
  296. package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +0 -16
  297. package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +0 -26
  298. package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +0 -5
  299. package/dist/@types/services/compilewxml/server/wccWorker.d.ts +0 -1
  300. package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +0 -4
  301. package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +0 -1
  302. package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +0 -4
  303. package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +0 -4
  304. package/dist/@types/services/fs/server/fileService.d.ts +0 -27
  305. package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +0 -3
  306. package/dist/@types/services/global/server/global.d.ts +0 -6
  307. package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +0 -4
  308. package/dist/@types/services/locales/server/const.d.ts +0 -5
  309. package/dist/@types/services/locales/server/locales.d.ts +0 -5
  310. package/dist/@types/services/log/server/logService.d.ts +0 -9
  311. package/dist/@types/services/miniappjson/server/miniappjson.d.ts +0 -4
  312. package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +0 -5
  313. package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +0 -1
  314. package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +0 -18
  315. package/dist/@types/services/nativeModule/server/nativeModule.d.ts +0 -3
  316. package/dist/@types/services/performance/server/performance.d.ts +0 -7
  317. package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +0 -18
  318. package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +0 -11
  319. package/dist/@types/services/projectManager/server/projectManager.d.ts +0 -7
  320. package/dist/@types/services/root/server/root.d.ts +0 -11
  321. package/dist/@types/services/root/server/rootService.d.ts +0 -2
  322. package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +0 -4
  323. package/dist/@types/services/store/server/storeService.d.ts +0 -11
  324. package/dist/@types/services/uniapp/server/uniapp.d.ts +0 -4
  325. package/dist/build-server/constant.js +0 -1
  326. package/dist/build-server/ctxManager.js +0 -1
  327. package/dist/build-server/fileCacheManager.js +0 -1
  328. package/dist/build-server/fileTaskDriver.js +0 -1
  329. package/dist/build-server/subProcess.js +0 -1
  330. package/dist/build-server/subTaskManager.js +0 -1
  331. package/dist/build-server/taskDriver.js +0 -1
  332. package/dist/build-server/taskFactory.js +0 -1
  333. package/dist/build-server/tasks/appserviceCompile/index.js +0 -1
  334. package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +0 -1
  335. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +0 -1
  336. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +0 -1
  337. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +0 -1
  338. package/dist/build-server/tasks/baseFileCompiler/OTService.js +0 -1
  339. package/dist/build-server/tasks/baseFileCompiler/enhance.js +0 -1
  340. package/dist/build-server/tasks/baseFileCompiler/es6module.js +0 -1
  341. package/dist/build-server/tasks/baseFileCompiler/index.js +0 -1
  342. package/dist/build-server/tasks/baseFileCompiler/javascript.js +0 -1
  343. package/dist/build-server/tasks/baseFileCompiler/less.js +0 -1
  344. package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +0 -1
  345. package/dist/build-server/tasks/baseFileCompiler/readFile.js +0 -1
  346. package/dist/build-server/tasks/baseFileCompiler/sass.js +0 -1
  347. package/dist/build-server/tasks/baseFileCompiler/terser.js +0 -1
  348. package/dist/build-server/tasks/baseFileCompiler/typescript.js +0 -1
  349. package/dist/build-server/tasks/baseFileCompiler/worklet.js +0 -1
  350. package/dist/build-server/tasks/baseFileCompiler/wxss.js +0 -1
  351. package/dist/build-server/tasks/common/apperrcode.config.js +0 -1
  352. package/dist/build-server/tasks/common/compiletype.config.js +0 -1
  353. package/dist/build-server/tasks/common/constants.config.js +0 -1
  354. package/dist/build-server/tasks/common/simulatortype.config.js +0 -1
  355. package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +0 -1
  356. package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +0 -1
  357. package/dist/build-server/tasks/common/utils/builder/builder.js +0 -1
  358. package/dist/build-server/tasks/common/utils/builder/filter.js +0 -1
  359. package/dist/build-server/tasks/common/utils/builder/index.js +0 -1
  360. package/dist/build-server/tasks/common/utils/cache/compile.js +0 -1
  361. package/dist/build-server/tasks/common/utils/cache/config.js +0 -1
  362. package/dist/build-server/tasks/common/utils/cache/filecompile.js +0 -1
  363. package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +0 -1
  364. package/dist/build-server/tasks/common/utils/cache/manager.js +0 -1
  365. package/dist/build-server/tasks/common/utils/cache/persistcache.js +0 -1
  366. package/dist/build-server/tasks/common/utils/cache/reporter.js +0 -1
  367. package/dist/build-server/tasks/common/utils/colorutils.js +0 -1
  368. package/dist/build-server/tasks/common/utils/common/bindActionTools.js +0 -1
  369. package/dist/build-server/tasks/common/utils/common/schema.helper.js +0 -1
  370. package/dist/build-server/tasks/common/utils/common/tools.js +0 -1
  371. package/dist/build-server/tasks/common/utils/common/waitable.js +0 -1
  372. package/dist/build-server/tasks/common/utils/filerules.js +0 -1
  373. package/dist/build-server/tasks/common/utils/fsutils.js +0 -1
  374. package/dist/build-server/tasks/common/utils/handleError.js +0 -1
  375. package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +0 -1
  376. package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +0 -1
  377. package/dist/build-server/tasks/common/utils/partialcompile.js +0 -1
  378. package/dist/build-server/tasks/common/utils/project/appconfig.js +0 -1
  379. package/dist/build-server/tasks/common/utils/project/appjson.js +0 -1
  380. package/dist/build-server/tasks/common/utils/project/customcomponent.js +0 -1
  381. package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +0 -1
  382. package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +0 -1
  383. package/dist/build-server/tasks/common/utils/project/helper/index.js +0 -1
  384. package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +0 -1
  385. package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +0 -1
  386. package/dist/build-server/tasks/common/utils/project/helper/theme.js +0 -1
  387. package/dist/build-server/tasks/common/utils/project/online/appconfig.js +0 -1
  388. package/dist/build-server/tasks/common/utils/project/pagejson.js +0 -1
  389. package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +0 -1
  390. package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +0 -1
  391. package/dist/build-server/tasks/common/utils/subpackageUtils.js +0 -1
  392. package/dist/build-server/tasks/common/utils/tracing/Trace.js +0 -1
  393. package/dist/build-server/tasks/common/utils/tracing/aegis.js +0 -1
  394. package/dist/build-server/tasks/common/utils/tracing/index.js +0 -1
  395. package/dist/build-server/tasks/common/utils/tracing/readiness.js +0 -1
  396. package/dist/build-server/tasks/common/utils/tracing/report.js +0 -1
  397. package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +0 -1
  398. package/dist/build-server/tasks/common/utils/transformsourcemap.js +0 -1
  399. package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +0 -1
  400. package/dist/build-server/tasks/common/utils/web/md5.js +0 -1
  401. package/dist/build-server/tasks/common/utils/web/processPath.js +0 -1
  402. package/dist/build-server/tasks/common/weapp.config.js +0 -1
  403. package/dist/build-server/tasks/pageInitSourceCompile/index.js +0 -1
  404. package/dist/build-server/tasks/pageframeCompile/index.js +0 -1
  405. package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +0 -1
  406. package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +0 -1
  407. package/dist/build-server/testAppConfig.js +0 -1
  408. package/dist/build-server/testAppservice.js +0 -1
  409. package/dist/build-server/testInitSourceCompile.js +0 -1
  410. package/dist/build-server/testPageframe.js +0 -1
  411. package/dist/build-server/testSubProcess.js +0 -1
  412. package/dist/build-server/utils/fileTask.js +0 -1
  413. package/dist/build-server/utils/getFileOrCache.js +0 -1
  414. package/dist/build-server/utils/process.js +0 -1
  415. package/dist/build-server/utils/request.js +0 -1
  416. package/dist/bussinessMonitor/monitor.js +0 -1
  417. package/dist/manifest.json +0 -4
  418. package/dist/modules/corecompiler/summer/pipeManager/index.js +0 -1
  419. package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +0 -1
  420. package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +0 -1
  421. package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +0 -1
  422. package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +0 -1
  423. package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +0 -1
  424. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +0 -1
  425. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +0 -1
  426. package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +0 -1
  427. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +0 -1
  428. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +0 -1
  429. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +0 -1
  430. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +0 -1
  431. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +0 -1
  432. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +0 -1
  433. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +0 -1
  434. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +0 -1
  435. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +0 -1
  436. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +0 -1
  437. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +0 -1
  438. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +0 -1
  439. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +0 -1
  440. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +0 -1
  441. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +0 -1
  442. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +0 -1
  443. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +0 -1
  444. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +0 -1
  445. package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +0 -1
  446. package/dist/modules/corecompiler/summer/pipeManager/types.js +0 -1
  447. package/dist/modules/fullcompiler/appservice/appservice.config.js +0 -1
  448. package/dist/modules/fullcompiler/appservice/generatecode.utils.js +0 -1
  449. package/dist/modules/fullcompiler/appservice/getappservice.js +0 -1
  450. package/dist/modules/fullcompiler/appservice/getcompiledjs.js +0 -1
  451. package/dist/modules/fullcompiler/appservice/getjsfile.js +0 -1
  452. package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +0 -1
  453. package/dist/modules/fullcompiler/appservice/getsubpackage.js +0 -1
  454. package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +0 -1
  455. package/dist/modules/fullcompiler/appservice/getwxappcode.js +0 -1
  456. package/dist/modules/fullcompiler/config/apperrcode.config.js +0 -1
  457. package/dist/modules/fullcompiler/filerules.js +0 -1
  458. package/dist/modules/fullcompiler/getallrawfiles.js +0 -1
  459. package/dist/modules/fullcompiler/getallwmltohtmlmap.js +0 -1
  460. package/dist/modules/fullcompiler/index.js +0 -1
  461. package/dist/modules/fullcompiler/pageframe/getsubpackage.js +0 -1
  462. package/dist/modules/fullcompiler/pageframe/getwxappcode.js +0 -1
  463. package/dist/modules/fullcompiler/pageframe/index.js +0 -1
  464. package/dist/modules/fullcompiler/trans/transwxmltojs.js +0 -1
  465. package/dist/modules/fullcompiler/trans/transwxsstojs.js +0 -1
  466. package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +0 -1
  467. package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +0 -1
  468. package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +0 -1
  469. package/dist/modules/fullcompiler/utils/appconfig/appjson.js +0 -1
  470. package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +0 -1
  471. package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +0 -1
  472. package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +0 -1
  473. package/dist/modules/fullcompiler/utils/filewriter/index.js +0 -1
  474. package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +0 -1
  475. package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +0 -1
  476. package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +0 -1
  477. package/dist/modules/fullcompiler/utils/index.js +0 -1
  478. package/dist/modules/fullcompiler/utils/taskmanager.js +0 -1
  479. package/dist/modules/fullcompiler/utils/theme/index.js +0 -1
  480. package/dist/modules/fullcompiler/utils/tools.js +0 -1
  481. package/dist/modules/fullcompiler/utils/transformsourcemap.js +0 -1
  482. package/dist/project/serverProject.js +0 -1
  483. package/dist/services/app/server/appDirService.js +0 -1
  484. package/dist/services/builder/server/builder.js +0 -1
  485. package/dist/services/compileCacheManager/common/compileCacheManager.js +0 -1
  486. package/dist/services/compileCacheManager/nw/compileCacheManager.js +0 -1
  487. package/dist/services/compileCacheManager/server/compileCacheManager.js +0 -1
  488. package/dist/services/compilewxml/server/compilewxmlService.js +0 -1
  489. package/dist/services/compilewxml/server/wccWorker.js +0 -1
  490. package/dist/services/compilewxss/server/compilewxssService.js +0 -1
  491. package/dist/services/compilewxss/server/wcscWorker.js +0 -1
  492. package/dist/services/consoledisplay/server/consoledisplay.js +0 -1
  493. package/dist/services/fileUtilsManager/server/fileUtilsManager.js +0 -1
  494. package/dist/services/fs/server/fileService.js +0 -1
  495. package/dist/services/genTempFile/server/genTempFileService.js +0 -1
  496. package/dist/services/global/server/global.js +0 -1
  497. package/dist/services/initializeCheck/server/initializeCheck.js +0 -1
  498. package/dist/services/locales/server/const.js +0 -1
  499. package/dist/services/locales/server/locales.js +0 -1
  500. package/dist/services/log/server/logService.js +0 -1
  501. package/dist/services/miniappjson/server/miniappjson.js +0 -1
  502. package/dist/services/multiTaskManager/server/multiTaskManager.js +0 -1
  503. package/dist/services/multiTaskManager/server/pm2TaskWorker.js +0 -1
  504. package/dist/services/multiTaskManager/server/pm2WorkerManager.js +0 -1
  505. package/dist/services/nativeModule/server/nativeModule.js +0 -1
  506. package/dist/services/performance/server/performance.js +0 -1
  507. package/dist/services/pluginFileReader/server/pluginFileReader.js +0 -1
  508. package/dist/services/projectManager/server/buildServerProjectManager.js +0 -1
  509. package/dist/services/projectManager/server/projectManager.js +0 -1
  510. package/dist/services/root/server/root.js +0 -1
  511. package/dist/services/root/server/rootService.js +0 -1
  512. package/dist/services/staticConfig/server/staticConfigService.js +0 -1
  513. package/dist/services/store/server/storeService.js +0 -1
  514. package/dist/services/uniapp/server/uniapp.js +0 -1
@@ -1 +0,0 @@
1
- !function(e,a){"use strict";const t=e("tslib"),i=e("../../../services/staticConfig/common/staticConfigService"),o=t.__importDefault(e("../../../services/common/getservice"));let n=!1;const r={},p={};function s(){if(n)return;const e=(0,o.default)(i.IStaticConfigService).get("extname");e.miniProgram.forEach((e=>{r[e]=!0})),e.miniGame.forEach((e=>{p[e]=!0})),n=!0}const l=["window","top","document","frames","self","location","navigator","localStorage","history","Caches","screen","alert","confirm","prompt","fetch","XMLHttpRequest","WebSocket","webkit","WeixinJSCore","Reporter","print","URL","DOMParser","requestAnimationFrame","getComputedStyle","Node","upload","preview","build","showDecryptedInfo","cleanAppCache","syncMessage","checkProxy","showSystemInfo","showMyOpenId","restoreLocalData","openVendor","openMiniapp","openMiniappBuilder","openMiniappIpa","openCrashDir","openCache","openEngine","cleanEngineWASM","openEditorCache","openToolsLog","showRequestInfo","help","showDebugInfoTable","closeDebug","showDebugInfo","__global","getMessageTunnelInfo","loadBabelMod","openInspect","openGameEngineDebugMode","closeGameEngineDebugMode","openGameEngineAssetsInspect","openUserDataPath"];l.push("WeixinJSBridge"),l.push("__WeixinJSBridge"),l.push("__passWAServiceGlobal__");const S={get setting(){const e=(0,o.default)(i.IStaticConfigService).get("weappsetting");return(null==e?void 0:e.setting)||{}},MAX_PAGE_STACK_DEPTH:10,DEFAULT_NAVIGATIONBAR_WHITE_TEXTCOLOR:"#f8f8f8",DEFAULT_NAVIGATIONBAR_BLACK_TEXTCOLOR:"#000000",DEFAULT_NAVIGATIONBAR_BGCOLOR:"#000000",default_tabBarBorderBlackColor:"rgba(0, 0, 0, 0.33)",default_tabBarBorderWhiteColor:"rgba(255, 255, 255, 0.33)",default_backgroundColor:"#ffffff",default_android_singlepage_foot_height:54,default_ios_singlepage_foot_height:48,default_android_tabbar_height:54,default_ios_tabbar_height:48,default_android_navigationbar_height:48,default_ios_navigationbar_height:44,default_statusbar_height:20,default_search_widget_radio:.6,default_conversation_widget_radio:.8,default_titlebar_height:44,NO_BOM_VAR:l,get whiteFileExtName(){return s(),r},get gameWhiteFileExtName(){return s(),p},errorPrefix:{COMPONENT_FOR_DEVELOPER:"For developer:",WXML_RUNTIME_ERROR:"WXMLRT",WXML_RUNTIME_ERROR_REG:/^WXMLRT_[^:]*:/,WXML_PLUGIN_RUNTIME_ERROR_REG:/^WXMLRT_\$gwx_(wx[0-9a-zA-Z]{16}):/,WXS_RUNTIME_ERROR:"WXSRT:",WEBVIEW_ERROR:"WEBVIEW_ERROR",CODE_ERROR:"CODE_ERROR"},weappURLRegular:/^https?:\/\/.*?\.debug.open.weixin.qq.com/,weappASURLRegular:/^https?:\/\/.*?\.appservice.open.weixin.qq.com/,weappLocalIdRegular:/^https?:\/\/wxfile.open.weixin.qq.com\//,weappEditorServiceRegular:/^https?:\/\/.*?\.?editorservice.open.weixin.qq.com/,weappPluginServiceRegular:/^https?:\/\/.*?\.?pluginservice.open.weixin.qq.com/,weappGamePageRegular:/^https?:\/\/.*?\.game.open.weixin.qq.com/,weappTraceRegular:/^https?:\/\/trace.open.weixin.qq.com/,weappSCFDebugRegular:/^https?:\/\/.*?\.debug.scf.weixin.qq.com/,weappSCFLongPollRegular:/^https?:\/\/servicewechat\.com\/wxa-qbase\/qbasecheckresult/,SCENE_DEFAULT:1001,SCENE_SINGLE_SHARE:1007,SCENE_GROUP_SHARE:1008,SCENE_PROFILE:1020,SCENE_CUSTOM_MENU:1035,SCENE_APP_SHARE_MESSAGE:1036,SCENE_MINI_PROGRAM:1037,SCENE_MINI_PROGRAM_BACK:1038,SCENE_TEMPLETE_MESSAGE:1043,SCENE_SHARE_TICKET:1044,SCENE_MOBILE_APPLICATION:1069,SCENE_GEOGRAPHIC_INFO:1146,SCENE_GROUP_TOOLBAR:1158,SCENE_GROUP_UPCOMING:1160,SCENE_CHAT_MATERIAL:1173,SCENE_H5_OPEN:1167,SCENE_SINGLE_MODE_OPEN:1154,APP_TYPE:{NORMAL:0,PLUGIN:1,SHOP:2,MINISHOP:3,GAME:4,CARD:5,NATIVE:7},DEBUGGER_FILE:{AS_SUB_LOADER:"assubloader.js",WORKER:"weixinworker.js",WORKER_AS_DEBUG:"workerasdebug.js",SUB_AS_DEBUG:"subasdebug.js",AS_DEBUG:"asdebug.js"},DEFAULT_ATTR_INFO:{network:{RequestDomain:[],WsRequestDomain:[],UploadDomain:[],DownloadDomain:[],UDPDomain:[],TCPDomain:[],BizDomain:[]},appImageUrl:"",appName:"Default",appType:0,minPublicLibVersion:"",platform:!1,released:!1,gameApp:!1,isSandbox:!1,hasMobile:!1,adminName:"",sendQbaseConfirmMsgLimit:!1,share_info:[],isExtAppId:!1,authQY:!1,permissionBitset:"",userbanded:!0,username:"",get setting(){const e=(0,o.default)(i.IStaticConfigService).get("weappsetting");return(null==e?void 0:e.setting)||{ActualWebviewDepth:5,AppMaxRunningCount:5,AppserviceMaxDataSize:1048576,AttrSyncForceUpdateTime:7,BackgroundNetworkInterruptedTimeout:300,CDNBaseURL:"https://res.servicewechat.com/weapp",CanKeepAliveByAudioPlay:1,CanPeriodFetchData:0,CanPreFetchData:0,CanShowGameLoadingAdvert:0,CanShowLoadingAdvert:0,DeadThreadBanDuration:1800,DeadThreadMaxTimeToLive:30,DownloadFileSizeLimit:200,ExpendedMaxWebviewDepth:10,ExpiresAtList:432e3,GameDownloadFileSizeLimit:200,GameMaxRunningCount:1,GamePerfCollectInterval:60,GamePerfCollectSamplePercentage:.001,GuaranteeFlag:0,LifeSpanAfterSuspend:300,LifeSpanBeforeSuspend:5,MaxBackgroundLifespan:300,MaxCodeSize:2,MaxCustomTabbarCount:10,MaxDataSize:1048576,MaxDownloadConcurrent:10,MaxFileStorageSize:200,MaxGlobalStorageItemSize:1048576,MaxGlobalStorageSize:20971520,MaxLocalStorageItemSize:1048576,MaxLocalstorageSize:10,MaxPluginSdkReadmeSize:2,MaxRequestConcurrent:10,MaxSubPackageLimit:100,MaxSubpackageFullCodeSize:20,MaxSubpackageSubCodeSize:2,MaxTabbarCount:5,MaxTabbarIconSize:40,MaxTempFileStorageSize:2048,MaxUploadConcurrent:10,MaxWebsocketConnect:5,MaxWebviewDepth:5,MaxWorkerConcurrent:1,MinTabbarCount:2,MinTempFileStorageSize:2048,NativeBufferQueueLimitByte:314572800,NativeBufferSizeLimitByte:10485760,NavigateMiniprogramLimit:999999,OpenProductFlag:0,OpenWxaIap:0,OpenWxaWaitUpdateMaxMicSec:13e3,OpenWxaWaitUpdateMaxMicSecForWeakNet:13e3,OpendataMaxFileStorageSize:10,OpendataMaxLocalStorageSize:10,OpendataMaxLocalstorageSize:10,PeriodFetchData:12,PeriodFetchDataDay:7,PreCgiCallByteBeforeLaunch:"",ScanCodeEnableZZM:0,StarNumberLimitation:50,SubContextImgDomain:["https://wx.qlogo.cn/","https://thirdwx.qlogo.cn/"],SyncLaunchSceneList:[1037,1055,1099],TLSSkipHostnameCheck:0,TempFileSizeLimitTotal:300,Uint32MaxFileStorageSizeInMB:200,Uint32MaxLocalstorageSizeInMB:10,Uint32MaxTempFileStorageSizeInMB:4096,Uint32MinTempFileStorageSizeInMB:2048,Uint32OpendataMaxFileStorageSizeInMB:10,Uint32OpendataMaxLocalstorageSizeInMB:10,Uint32WxaLibPrivateMaxFileStorageSizeInMB:200,UsePackageConfirmSubDescScopeList:[],WebsocketSkipPortCheck:1,WidgetDrawMinInterval:4500,WidgetImageFlowLimitDuration:1800,WidgetImageFlowLimitMaxSize:307200}}}};module.exports=S}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPageInitResourceCore=exports.getPageInitResource=void 0;const n=e("tslib").__importDefault(e("path")),o=e("../../../bussinessMonitor/monitor");exports.getPageInitResource=async function(e,t){const o=n.default.join("app",t);return(0,exports.getPageInitResourceCore)(e,o)};exports.getPageInitResourceCore=async function(e,t){var n;const r=Date.now(),i=null===(n=e.options)||void 0===n?void 0:n.projectId;(0,o.BusinessReport)("pageInitSourceCompile","compile start",JSON.stringify({projectId:i,filePath:t}));try{const e=t.slice(4,t.length-5),n=`\n <style> </style> <page></page>\n <script>\n var __setCssStartTime__ = Date.now();\n __wxAppCode__['${e}.wxss']();\n var __setCssEndTime__ = Date.now();\n (function() {\n var gf = $gwx( './${e}.wxml' ); \n\n if (window.__wxAppCodeReadyCallback__) {\n window.__wxAppCodeReadyCallback__(gf);\n } else {\n document.dispatchEvent(new CustomEvent( "generateFuncReady", {\n detail: {\n generateFunc: gf\n }\n }));\n }\n })();\n <\/script>`,s=Date.now()-r;return(0,o.BusinessReport)("pageInitSourceCompile","compile success",JSON.stringify({projectId:i,filePath:t,rawPath:e,duration:s,contentLength:n.length})),n}catch(e){const n=Date.now()-r;throw(0,o.BusinessReport)("pageInitSourceCompile","compile failed",JSON.stringify({projectId:i,filePath:t,duration:n,error:e instanceof Error?e.message:String(e)})),e}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPageframeCore=async function(e,t=!1){var o,_;const l=Date.now(),m=JSON.parse(p.optionsStorage.getStore()||"{}")||{};(0,r.BusinessReport)("pageframeCompile","compile start",JSON.stringify({options:m,isMultiPkg:t}));try{const p=[];t||p.push('\n <!DOCTYPE html>\n <html lang="zh-CN">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />\n <meta http-equiv="Content-Security-Policy" content="script-src \'self\' \'unsafe-inline\' \'unsafe-eval\'">\n <link rel="icon" href="data:image/ico;base64,aWNv">\n <script>'),p.push("\n var __mainPageFrameReady__ = window.__mainPageFrameReady__ || function(){}; var __pageFrameStartTime__ = __pageFrameStartTime__ || Date.now(); var __webviewId__ = __webviewId__;\n var __wxAppCode__ = __wxAppCode__ || {}; var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0}; var __vd_version_info__=__vd_version_info__||{};");const c=Date.now(),d=await a.default.transWXMLToJS(e,{app:!0});p.push(d.code);const u=Date.now()-c;(0,r.BusinessReport)("pageframeCompile","wxml compiled",JSON.stringify({options:m,duration:u,codeLength:null===(o=d.code)||void 0===o?void 0:o.length}));const g=Date.now(),w=await i.default.transWXSSToJS(e,{app:!0});p.push((0,n.wrapCodeByEval)(w.comm));const v=Date.now()-g;(0,r.BusinessReport)("pageframeCompile","wxss compiled",JSON.stringify({options:m,duration:v,codeLength:null===(_=w.comm)||void 0===_?void 0:_.length}));const f=Date.now(),h=await(0,s.getPageFrameWxAppCode)(e,{app:!0,noJson:!0});p.push(`;(window.eval || __global.__hackEval)(\`${h}\`)`);const y=Date.now()-f;(0,r.BusinessReport)("pageframeCompile","wxappcode generated",JSON.stringify({options:m,duration:y,codeLength:null==h?void 0:h.length})),p.push(";__mainPageFrameReady__() ;var __pageFrameEndTime__ = Date.now()"),t||p.push("<\/script> </head> <body> <div></div> </body> </html>");const S=Date.now()-l;return(0,r.BusinessReport)("pageframeCompile","compile success",JSON.stringify({options:m,totalDuration:S,scriptCount:p.length,totalLength:p.join("").length})),p.join("\n\n")}catch(e){const t=Date.now()-l;throw(0,r.BusinessReport)("pageframeCompile","compile failed",JSON.stringify({options:m,duration:t,error:e instanceof Error?e.message:String(e)})),e}};const o=e("tslib"),n=e("../common/utils/common/tools"),a=o.__importDefault(e("../common/utils/trans/transwxmltojs")),i=o.__importDefault(e("./utils/trans/transwxsstojs")),s=e("./utils/appdevserver/getwxappcode"),r=e("../../../bussinessMonitor/monitor"),p=e("../../ctxManager")}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPageFrameWxAppCode=async function(e,t={}){const{app:s,page:c}=t;let u;if(!s&&(u=void 0,!u))return"";const l=await n.getAppConfig(e),g=await a.getFileListJustInPack(e,l,u),d=new o.default;for(let o=0,a=g.length;o<a;o++)t.noJson||d.addTask(i,e,g[o]),d.addTask(p,e,g[o],"$gwx"),t.noWXSS||d.addTask(r,e,g[o]);const f=[],m=await d.runAllAsync();for(const e of m)f.push(...e);return f.join("\n")};const o=e("tslib").__importDefault(e("../../../../../utils/taskmanager")),a=e("../../../common/utils/project/customcomponent"),n=e("../../../common/utils/project/appconfig"),s=e("../../../common/utils/appdevserver/getwxappcode"),{getWxAppCodeWxmlOfPage:p,getWxAppCodeWxssOfPage:r,getWxAppCodeJsonOfPage:i}=s}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";const t=e("tslib"),a=e("../../../common/utils/interfacebuilder/registry"),i=e("../../../../../services/compilewxss/common/compilewxssService"),n=t.__importDefault(e("../../../../../services/common/getservice")),c=e("../../../../../services/builder/common/builder"),s=t.__importStar(e("../../../common/utils/cache/compile")),r=e("../../../common/utils/cache/reporter"),l=e("../../../../../services/performance/common/performance"),p=e("path"),m=e("../../../common/utils/project/appconfig"),u=e("../../../common/utils/project/customcomponent");async function f(e,o){const t=Date.now();try{const s=await async function(e,o){const t=await(0,n.default)(c.IBuilder).getCompiler(e),{appConfig:s,config:r,lazyload:l}=o,m=await t.getPackageWxssFiles((null==r?void 0:r.root)||"__APP__"),f=m.wxssFiles,g={};f.forEach((e=>{g[e]=m.content[e]||""})),Object.entries(g).forEach((([e,o])=>{e.startsWith("./")||(g[`./${e}`]=o)}));const d={};f.forEach((e=>{d[e]=!0}));const w=(null==r?void 0:r.pages.map((e=>p.posix.join(r.root,e))))||s.pages,h=[];let C=0;w.forEach((e=>{d[`${e}.wxss`]&&(C++,h.push(`./${e}.wxss`),delete d[`${e}.wxss`])})),(await u.getWxssCompileConfig(e,s,r)).forEach((e=>{d[`${e}.wxss`]&&(C++,h.push(`./${e}.wxss`),delete d[`${e}.wxss`])}));for(const e in d)"app.wxss"===e&&0===C&&(C=1),h.push(`./${e}`);let _={};if(m)_=m.content;else if(e.isIB){const e=a.interfaceBuilderRegistry.get(1);e&&(_=await e())}return e.isIB||(_=await async function(e){const{appConfig:o,config:t,replaceContent:a}=e;return Object.assign({},a)}({appConfig:s,config:r,replaceContent:_})),await(0,n.default)(i.ICompilewxssService).compileWxss({pageCount:C,files:h,cwd:t.srcPath,subPackage:null==r?void 0:r.root,lazyload:l,replaceContent:_})}(e,o),r=(0,n.default)(l.IPerformanceReportService).getReportName().COMPILE_WXSS;return(0,n.default)(l.IPerformanceReportService).reportPerf(r,Date.now()-t),s}catch(e){if("CustomError"===(null==e?void 0:e.type))throw e;throw function(e){const o=new Error(e.toString());return o.code=10041,o.msgForConsole=e.message,console.error(e.message),o}(e)}}module.exports={transWXSSToJS:async function(e,o={}){const{app:t,page:a,hotReloadFile:i}=o,n=await m.getAppConfig(e),c=s.CacheKey.miniProgramWxss;let l=await s.default.get(c);if(l||(l={},await s.default.set(c,l)),i){const o=void 0,t=l.__APP__=await f(e,{appConfig:n,config:o});return await s.default.set(c,l),{comm:t.comm,page:(null==t?void 0:t[`./${i}`])||""}}if(t){const o="__APP__";let t=l[o];return void 0!==(null==t?void 0:t.comm)?(r.compileCacheReporter.hitCache(c),await s.default.set(c,l),{comm:t.comm}):(r.compileCacheReporter.startGenCache(c),l[o]=t=await f(e,{appConfig:n})||{},r.compileCacheReporter.finishGenCache(c),await s.default.set(c,l),{comm:(null==t?void 0:t.comm)||""})}const p=`./${a}.wxss`;{const o="__APP__";let t=l[o];return t?r.compileCacheReporter.hitCache(c):(r.compileCacheReporter.startGenCache(c),l[o]=t=await f(e,{appConfig:n}),r.compileCacheReporter.finishGenCache(c)),await s.default.set(c,l),{comm:null==t?void 0:t.comm,page:(null==t?void 0:t[p])||""}}},transWXSSToJSLazyload:async function(e,o={}){const{app:t,page:a,hotReloadFile:i}=o,n=await m.getAppConfig(e),c=s.CacheKey.miniProgramWxssLazyload;let r=await s.default.get(c);if(r||(r={},await s.default.set(c,r)),i){const o=void 0,t=r.__APP__=await f(e,{appConfig:n,config:o,lazyload:!0});return{comm:t.common,page:t.pageWxss[`./${i}`]||""}}const l=`./${a}.wxss`;if(t){const o="__APP__";let t=r[o];return t||(t=r[o]=await f(e,{appConfig:n,lazyload:!0})),{comm:null==t?void 0:t.common,page:(null==t?void 0:t.pageWxss[l])||""}}return{comm:"",page:""}},getWxssFilesAndContent:async function(e,o){const t=await(0,n.default)(c.IBuilder).getCompiler(e),{config:a}=o,i=await t.getPackageWxssFiles((null==a?void 0:a.root)||"__APP__"),s=i.wxssFiles,r={};return s.forEach((e=>{r[e]=i.content[e]})),s.forEach((e=>{r[e]||(r[e]="")})),{wxssFiles:s,content:r}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=e("tslib"),r=e("./ctxManager"),i=e("../services/projectManager/common/buildServerProjectManager"),a=t.__importStar(e("../services/common/getservice"));e("../services/root/server/rootService");const n={backendContextFromWeb:!0,sid:"QPstq65DER",projectpath:"/Users/zhangchen/WeChatProjects/miniprogram-18",compileOptions:{isLazyLoad:!1,compileCommandTS:1758542732935,targetPlatform:"mini-weixin",deviceInfo:{os:"iOS",ua:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.06.2411052 MicroMessenger/8.0.5 Language/zh_CN webview/{{webviewID}}",title:"iPhone 12/13 (Pro)",model:"iPhone 12/13 (Pro)",dpr:3,screenHeight:844,screenWidth:390,statusbarHeight:47,navigationbarHeight:44,navigationbarHeightPortrait:44,navigationbarHeightLandscape:32,tabbarHeight:82,singlePageFootHeight:82,isPad:!1,hasNotch:!0,hasIsland:!1,safeAreaInsetBottom:34,safeAreaInsetBottomLandscape:21,useTitleBar:!1,titleBarHeight:0},darkmode:!1,orientation:{value:"portrait",callbackID:-1},remoteDebugWindowShow:!1,launchInfo:{scene:1001,path:"pages/index/index",query:{},mode:"default",appearance:"default"}}};(async()=>{console.log("-dura start",Date.now()),await(0,a.initServices)(a.EServiceEnviroment.SERVER,{}),r.optionsStorage.run(JSON.stringify({ticket:"education98_SPbImF9dwadM8dSCZqsf_gumsDv8kjoTyUX95I29gKbs70vxoN3Iocakz0bo76U-EDGfyLdoDsJHu-fgzYr6P5LQ4x3ZcVzU7dsXiQ",projectId:"4289548127407128586",versionId:"",templateId:"",snapshotId:"",taskId:"0725784c-5075-4781-8073-92b6d37e3ccb"}),(async()=>{const o=Date.now(),s=(0,a.default)(i.IProjectManagerService),c=JSON.parse(r.optionsStorage.getStore()||"{}");if(!c.projectId||!c.ticket)throw new Error("[realSubProcess] pageframeCompile 缺少 options 数据");const g=Date.now(),l=await s.getProject({projectId:c.projectId,ticket:c.ticket,versionId:c.versionId}),p=Date.now();if(!l)throw new Error("[realSubProcess] pageframeCompile 缺少 project 数据");if(l.backendProjectContext=n,!l.backendProjectContext)throw new Error("[realSubProcess] pageframeCompile 缺少 backendProjectContext 数据");const d=await Promise.resolve().then((()=>t.__importStar(e("./tasks/common/utils/project/appconfig")))),m=Date.now(),h=await d.getAppConfig(l),b=Date.now();console.log("所有任务完成了!!!!",JSON.stringify(h)),console.log("startTime",o),console.log("getProjectTime",g,g-o),console.log("getProjectFinishTime",p,p-g),console.log("getAppserviceCoreTime",m,m-p),console.log("getAppserviceCoreFinishTime",b,b-m)}))})()}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=e("tslib"),r=e("./ctxManager"),a=e("../services/projectManager/common/buildServerProjectManager"),i=t.__importStar(e("../services/common/getservice"));e("../services/root/server/rootService");const n={backendContextFromWeb:!0,sid:"QPstq65DER",projectpath:"/Users/zhangchen/WeChatProjects/miniprogram-18",compileOptions:{isLazyLoad:!1,compileCommandTS:1758542732935,targetPlatform:"mini-weixin",deviceInfo:{os:"iOS",ua:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.06.2411052 MicroMessenger/8.0.5 Language/zh_CN webview/{{webviewID}}",title:"iPhone 12/13 (Pro)",model:"iPhone 12/13 (Pro)",dpr:3,screenHeight:844,screenWidth:390,statusbarHeight:47,navigationbarHeight:44,navigationbarHeightPortrait:44,navigationbarHeightLandscape:32,tabbarHeight:82,singlePageFootHeight:82,isPad:!1,hasNotch:!0,hasIsland:!1,safeAreaInsetBottom:34,safeAreaInsetBottomLandscape:21,useTitleBar:!1,titleBarHeight:0},darkmode:!1,orientation:{value:"portrait",callbackID:-1},remoteDebugWindowShow:!1,launchInfo:{scene:1001,path:"pages/index/index",query:{},mode:"default",appearance:"default"}}};(async()=>{console.log("-dura start",Date.now()),await(0,i.initServices)(i.EServiceEnviroment.SERVER,{}),r.optionsStorage.run(JSON.stringify({ticket:"education99_jtAY_NY7gDJwPvCBQfop8xC-pNTIl16HgGYOswTzdBFK2Z8lRKysqWVLT1g",projectId:"4360423248983932946",versionId:"",templateId:"",snapshotId:"",taskId:"0725784c-5075-4781-8073-92b6d37e3ccb"}),(async()=>{const o=Date.now(),s=(0,i.default)(a.IProjectManagerService),c=JSON.parse(r.optionsStorage.getStore()||"{}");if(!c.projectId||!c.ticket)throw new Error("[realSubProcess] pageframeCompile 缺少 options 数据");const l=Date.now(),p=await s.getProject({projectId:c.projectId,ticket:c.ticket,versionId:c.versionId}),g=Date.now();if(!p)throw new Error("[realSubProcess] pageframeCompile 缺少 project 数据");if(p.backendProjectContext=n,!p.backendProjectContext)throw new Error("[realSubProcess] pageframeCompile 缺少 backendProjectContext 数据");const{getAppserviceCore:d}=await Promise.resolve().then((()=>t.__importStar(e("./tasks/appserviceCompile")))),m=Date.now(),h=await d(p),v=Date.now();console.log("所有任务完成了!!!!",h),console.log("startTime",o),console.log("getProjectTime",l,l-o),console.log("getProjectFinishTime",g,g-l),console.log("getAppserviceCoreTime",m,m-g),console.log("getAppserviceCoreFinishTime",v,v-m)}))})()}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=e("tslib"),r=e("./ctxManager"),a=e("../services/projectManager/common/buildServerProjectManager"),i=t.__importStar(e("../services/common/getservice"));e("../services/root/server/rootService");const n={backendContextFromWeb:!0,sid:"QPstq65DER",projectpath:"/Users/zhangchen/WeChatProjects/miniprogram-18",compileOptions:{isLazyLoad:!1,compileCommandTS:1758542732935,targetPlatform:"mini-weixin",deviceInfo:{os:"iOS",ua:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.06.2411052 MicroMessenger/8.0.5 Language/zh_CN webview/{{webviewID}}",title:"iPhone 12/13 (Pro)",model:"iPhone 12/13 (Pro)",dpr:3,screenHeight:844,screenWidth:390,statusbarHeight:47,navigationbarHeight:44,navigationbarHeightPortrait:44,navigationbarHeightLandscape:32,tabbarHeight:82,singlePageFootHeight:82,isPad:!1,hasNotch:!0,hasIsland:!1,safeAreaInsetBottom:34,safeAreaInsetBottomLandscape:21,useTitleBar:!1,titleBarHeight:0},darkmode:!1,orientation:{value:"portrait",callbackID:-1},remoteDebugWindowShow:!1,launchInfo:{scene:1001,path:"pages/index/index",query:{},mode:"default",appearance:"default"}}};(async()=>{console.log("-dura start",Date.now()),await(0,i.initServices)(i.EServiceEnviroment.SERVER,{}),r.optionsStorage.run(JSON.stringify({ticket:"education98_SPbImF9dwadM8dSCZqsf_gumsDv8kjoTyUX95I29gKbs70vxoN3Iocakz0bo76U-EDGfyLdoDsJHu-fgzYr6P5LQ4x3ZcVzU7dsXiQ",projectId:"4289548127407128586",versionId:"",templateId:"",snapshotId:"",taskId:"0725784c-5075-4781-8073-92b6d37e3ccb"}),(async()=>{const o=Date.now(),s=(0,i.default)(a.IProjectManagerService),c=JSON.parse(r.optionsStorage.getStore()||"{}");if(!c.projectId||!c.ticket)throw new Error("[realSubProcess] pageframeCompile 缺少 options 数据");const l=Date.now(),g=await s.getProject({projectId:c.projectId,ticket:c.ticket,versionId:c.versionId}),d=Date.now();if(!g)throw new Error("[realSubProcess] pageframeCompile 缺少 project 数据");if(g.backendProjectContext=n,console.log("看看啊",g),!g.backendProjectContext)throw new Error("[realSubProcess] pageframeCompile 缺少 backendProjectContext 数据");const{getPageInitResource:p}=await Promise.resolve().then((()=>t.__importStar(e("./tasks/pageInitSourceCompile")))),m=await p(g,"/miniprogram/pages/index/index.html");console.log("所有任务完成了!!!!",m),console.log("startTime",o),console.log("getProjectTime",l,l-o),console.log("getProjectFinishTime",d,d-l)}))})()}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=e("tslib"),r=e("./ctxManager"),a=e("../services/projectManager/common/buildServerProjectManager"),i=t.__importStar(e("../services/common/getservice"));e("../services/root/server/rootService");const n={backendContextFromWeb:!0,sid:"QPstq65DER",projectpath:"/Users/zhangchen/WeChatProjects/miniprogram-18",compileOptions:{isLazyLoad:!1,compileCommandTS:1758542732935,targetPlatform:"mini-weixin",deviceInfo:{os:"iOS",ua:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.06.2411052 MicroMessenger/8.0.5 Language/zh_CN webview/{{webviewID}}",title:"iPhone 12/13 (Pro)",model:"iPhone 12/13 (Pro)",dpr:3,screenHeight:844,screenWidth:390,statusbarHeight:47,navigationbarHeight:44,navigationbarHeightPortrait:44,navigationbarHeightLandscape:32,tabbarHeight:82,singlePageFootHeight:82,isPad:!1,hasNotch:!0,hasIsland:!1,safeAreaInsetBottom:34,safeAreaInsetBottomLandscape:21,useTitleBar:!1,titleBarHeight:0},darkmode:!1,orientation:{value:"portrait",callbackID:-1},remoteDebugWindowShow:!1,launchInfo:{scene:1001,path:"pages/index/index",query:{},mode:"default",appearance:"default"}}};(async()=>{await(0,i.initServices)(i.EServiceEnviroment.SERVER,{}),r.optionsStorage.run(JSON.stringify({ticket:"education99_jtAY_NY7gDJwPvCBQfop8xC-pNTIl16HgGYOswTzdBFK2Z8lRKysqWVLT1g",projectId:"4283746438707675141",versionId:"",templateId:"",snapshotId:"",taskId:"0725784c-5075-4781-8073-92b6d37e3ccb"}),(()=>{(async()=>{const o=Date.now(),s=(0,i.default)(a.IProjectManagerService),c=JSON.parse(r.optionsStorage.getStore()||"{}");if(!c.projectId||!c.ticket)throw new Error("[realSubProcess] pageframeCompile 缺少 options 数据");const l=Date.now(),g=await s.getProject({projectId:c.projectId,ticket:c.ticket,versionId:c.versionId}),p=Date.now();if(!g)throw new Error("[realSubProcess] pageframeCompile 缺少 project 数据");if(g.backendProjectContext=n,!g.backendProjectContext)throw new Error("[realSubProcess] pageframeCompile 缺少 backendProjectContext 数据");const{getPageframeCore:d}=await Promise.resolve().then((()=>t.__importStar(e("./tasks/pageframeCompile")))),m=Date.now(),h=await d(g,!1),P=Date.now();console.log("所有任务完成了!!!!",h),console.log("startTime",o),console.log("getProjectTime",l,l-o),console.log("getProjectFinishTime",p,p-l),console.log("getAppserviceCoreTime",m,m-p),console.log("getAppserviceCoreFinishTime",P,P-m)})()}))})()}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(s,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=s("tslib"),a=t.__importDefault(s("process")),r=t.__importDefault(s("fs-extra")),o=t.__importDefault(s("./subTaskManager")),u=s("./ctxManager");a.default.stdin.resume(),a.default.on("message",(s=>{const{data:e}=s;console.log("[subProcess] 收到主进程消息:",JSON.stringify(e,null,2)),"finishSubTask"!==e.type?c(e):o.default.onSubTaskFinish(e)}));const c=s=>{u.optionsStorage.run(JSON.stringify(s.task.options),(()=>{const{task:e,resultFilePath:t,taskId:o}=s;(async()=>{var u;const c={code:0,result:{message:"mock result from subProcess",taskName:e.taskName,subTaskResult:{}},errmsg:""};try{await d(2e3);const e=await i(s);e.skipped||("error"in e?(c.code=-1,c.errmsg=`[mock addSubTask] ${e.error.message}`):"result"in e&&0===e.result.code&&(c.result.subTaskResult={taskName:e.result.data[0].taskName,result:e.result.data[0].result}));try{await r.default.writeJSON(t,c.result,{spaces:2})}catch(s){console.error("[subProcess] 写入模拟结果失败:",s),c.code=-1,c.errmsg="failed to persist mock result"}}catch(s){console.error("[subProcess] 处理 mock startTask 失败:",s),0===c.code&&(c.code=-1,c.errmsg=s instanceof Error?s.message:"mock startTask failed")}finally{null===(u=a.default.send)||void 0===u||u.call(a.default,{type:"process:msg",data:{taskId:o,type:"result",data:c}})}})()}))},i=async s=>{var e;if(null===(e=s.task.data)||void 0===e?void 0:e.__fromMockAddSubTask)return{skipped:!0};const t=n(s);try{console.log("[subProcess] trigger mock addSubTask",t);const e=await o.default.addSubTask(t,{__fromMockAddSubTask:!0,parentTaskId:s.taskId,requestedAt:Date.now(),originalTaskName:s.task.taskName},s.task.taskName);return console.log("[subProcess] mock addSubTask finished"),{skipped:!1,result:e}}catch(s){const e=s instanceof Error?s:new Error(String(s));return console.error("[subProcess] mock addSubTask failed:",e),{skipped:!1,error:e}}},n=s=>{const e=u.optionsStorage.getStore(),t=e?JSON.parse(e):{};return JSON.stringify(Object.assign(Object.assign({},t),{taskId:s.mainTaskId}))},d=s=>new Promise((e=>setTimeout(e,s)))}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(s,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSummerTaskConfig=function(s){const e=[],a=(0,i.couldUseSWCMode)(s),r=Array.isArray(s.useCompilerPlugins)&&s.useCompilerPlugins.includes("typescript"),c=[];r&&c.push({taskName:"typescript",config:{}}),r||c.push({taskName:"javascript",config:{disableUseStrict:s.disableUseStrict}}),s.enhance||s.es6?c.push({taskName:"enhance",config:{disableUseStrict:s.disableUseStrict}}):s.compileWorklet&&c.push({taskName:"worklet",config:{}}),c.push({taskName:"es6module",config:{disableUseStrict:s.disableUseStrict}}),s.minified&&c.push({taskName:"terser",config:{}});const n=c.reverse().reduce(((s,e,i)=>(1===i&&(s.taskName=t(s.taskName,a)),e.taskName=t(e.taskName,a),e.next=[s],e)));return e.push({fileType:r?".ts":".js",tasks:[n]}),e.push({fileType:".wxss",tasks:[{taskName:"readFile",config:{}}]}),e.push({fileType:".wxml",tasks:[{taskName:"readFile",config:{}}]}),Array.isArray(s.useCompilerPlugins)&&(s.useCompilerPlugins.includes("less")&&e.push({fileType:".less",tasks:[{taskName:"less",config:{}}]}),s.useCompilerPlugins.includes("sass")&&(e.push({fileType:".scss",tasks:[{taskName:"sass",config:{}}]}),e.push({fileType:".sass",tasks:[{taskName:"sass",config:{}}]}))),e},exports.generateFileTaskList=function(s,e){const i={};e.forEach((s=>{s.fileType&&(i[s.fileType]=s.tasks)}));const t=[];return s.forEach((s=>{const e=s.source.match(/\.([a-zA-Z0-9]+)$/),a=e?`.${e[1]}`:"";i[a]&&t.push({file:s,taskConfig:i[a]})})),t};const i=s("../../modules/corecompiler/summer/pluginconfig");function t(s,e){return e?`swc-${s}`:`${s}`}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFileOrCache=exports.getFileContent=void 0;const r=e("tslib"),s=e("./request"),i=r.__importDefault(e("../fileCacheManager"));exports.getFileContent=async e=>{var t;const{ticket:r,projectId:i,versionId:a,snapshotId:o,filePath:c}=e,n=await(0,s.getFileContentHTTP)({ticket:r,projectId:i,versionId:a,snapshotId:o,path:c});if(n.success&&Array.isArray(n.fileList)){const e=null===(t=n.fileList[0])||void 0===t?void 0:t.content;return e?{code:0,data:e}:{code:-1e3,data:"没有正确获取到文件内容"}}return console.error("getFileOrCache resp error",n),{code:-1001,data:`获取文件内容失败: ${n.message}`}};exports.getFileOrCache=async e=>{const{ticket:t,projectId:r,versionId:s,snapshotId:a,fileTask:o}=e,c=await i.default.getFileCache({ticket:t,projectId:r,versionId:s,snapshotId:a,fileTask:o});return c.success?{code:0,isCacheResult:!0,data:c.data}:await(0,exports.getFileContent)({ticket:t,projectId:r,versionId:s,snapshotId:a,filePath:o.filePath})}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- require("licia/lazyImport")(require),require;
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getProjectUpdateTimeContentHTTP=exports.getProjectUpdateTimeHTTP=exports.getFileContentHTTP=void 0;const a=e("tslib"),o=a.__importDefault(e("long")),i=e("@tencent/wx-faas-mmbizwxaedufiledocker995-branch/mmbizwxaedufileProxy"),s=e("@tencent/wx-faas-mmbizwxaedukvproxydocker995-branch/mmbizwxaedukvproxyProxy"),r=a.__importDefault(e("axios")),n=e("lodash"),{NODE_ENV:c}=process.env,l="production"===c;r.default.create({proxy:l?{protocol:"http",host:"shanghai-mmhttpproxy.woa.com",port:11113}:void 0});exports.getFileContentHTTP=async e=>{try{const{ticket:t,projectId:a,versionId:o,snapshotId:i,path:s}=e;return Date.now(),Array.isArray(s)&&s.map((e=>({name:e}))),await f(a,Array.isArray(s)?s.map((e=>({name:e}))):[{name:s}],o)}catch(e){return{success:!1,fileList:[],message:`请求文件内容失败:${e.message}`}}};exports.getProjectUpdateTimeHTTP=async e=>{try{const{projectId:t,versionId:a,snapshotId:o,ticket:i}=e;return Date.now(),await m(t,a)}catch(e){return{success:!1,fileList:[],message:"获取文件时间失败"}}};exports.getProjectUpdateTimeContentHTTP=async e=>{try{const{projectId:t,versionId:a,snapshotId:o,ticket:i}=e,s=(Date.now(),await m(t,a)),r=await f(t,s.fileList.map((e=>({name:e.name}))),a),n=new Map(r.fileList.map((({name:e,content:t})=>[e,t])));return s.fileList.forEach((e=>{e.content=n.get(e.name)||""})),s}catch(e){return{success:!1,fileList:[],message:"获取文件时间失败"}}};const m=async(e,t)=>{let a;try{let i=null;i=t?await(0,s.GetEduOnlineProjectVersionInfo)({versionId:o.default.fromString(t)},{conf:"/home/qspace/etc/route/shanghai/mmbizwxaedukvproxy_route.conf"}):await(0,s.GetEduOnlineProjectInfo)({id:o.default.fromString(e)},{conf:"/home/qspace/etc/route/shanghai/mmbizwxaedukvproxy_route.conf"}),a={success:!0,fileList:i.filePathList.fileDetail,message:"snapshot 文件列表获取成功"}}catch(e){console.error(e),a={success:!1,fileList:[],message:"内部服务错误"}}return a},f=async(e,t,a)=>{var r,c;let l;try{let m=[];const f=Object.fromEntries((null==t?void 0:t.map((e=>[e.name,!0])))||[]);let u=null;if(a){const t=await(0,s.GetEduOnlineProjectVersionInfo)({versionId:o.default.fromString(a)},{conf:"/home/qspace/etc/route/shanghai/mmbizwxaedukvproxy_route.conf"}),c=(0,n.get)(t,"filePathList.fileDetail",[]).filter((e=>e.key&&f[e.name])),l=Object.fromEntries(c.map((e=>[e.key,e.name])));u=await(0,i.BatchGetFile)({uuid:o.default.fromString(e),isGetAll:!1,scene:1,keyList:c.map((e=>e.key))},{conf:"/home/qspace/etc/route/shanghai/mmbizwxaedufile_route.conf"}),null===(r=u.fileList)||void 0===r||r.forEach((e=>{e.fileName=l[e.key]}))}else u=await(0,i.BatchGetFile)({uuid:o.default.fromString(e),isGetAll:!1,scene:1,fileNameList:null==t?void 0:t.map((e=>e.name))},{conf:"/home/qspace/etc/route/shanghai/mmbizwxaedufile_route.conf"});m=(null===(c=u.fileList)||void 0===c?void 0:c.map((e=>({name:e.fileName,content:Buffer.from(e.fileBuffer).toString("utf-8")}))))||[],l={success:!0,fileList:m,message:"snapshot 文件列表内容获取成功"}}catch(e){console.error(e),l={success:!1,fileList:[],message:"内部服务错误"}}return l}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BusinessReport=void 0;const t=(0,e("@tencent/wecube-sdk-plus").createWeCubeReport)();const o="production"===process.env.NODE_ENV?"production":"development";exports.BusinessReport=async(e,r,s)=>{try{await t.report({biz_id:21064,module:e,action:r,data:s,env:o})}catch(e){console.error("[BusinessReport] reportApiReceived failed:",e)}}}(require("licia/lazyImport")(require),require);
@@ -1,4 +0,0 @@
1
- {
2
- "version": "2.1.34",
3
- "buildTime": 1777464940112
4
- }
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.allPipes=exports.runPipeTask=exports.PipeContext=exports.PipeCPProject=exports.PipeManager=void 0;var t=e("./pipeManager");Object.defineProperty(exports,"PipeManager",{enumerable:!0,get:function(){return t.PipeManager}});var p=e("./pipeCPProject");Object.defineProperty(exports,"PipeCPProject",{enumerable:!0,get:function(){return p.PipeCPProject}});var i=e("./pipeContext");Object.defineProperty(exports,"PipeContext",{enumerable:!0,get:function(){return i.PipeContext}});var n=e("./pipeWorker");Object.defineProperty(exports,"runPipeTask",{enumerable:!0,get:function(){return n.runPipeTask}});var o=e("./pipes/index");Object.defineProperty(exports,"allPipes",{enumerable:!0,get:function(){return o.allPipes}})}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeCPProject=void 0;const r=t("../../../../utils/tools"),i=t("../../../../project/baseProject");class o extends i.BaseProject{constructor(t){super(),this._projectPath=(0,r.normalizePath)(t.projectPath),this._appid=t.appid,this._attr=t.attr,this._type=this.getProjectType(t.attr,t.type),this._miniprogramRoot=t.miniprogramRoot,this._pluginRoot=t.pluginRoot,this._projectArchitecture=t.projectArchitecture,this.setting=t.setting,this.backendProjectContext=t.backendProjectContext,this.projectContext=t.projectContext}init(){}updateFileAndDirs(){}static async serializeForPipe(t){const e=await t.serialize();return{appid:e.appid,attr:e.attr,type:e.type,projectPath:e.projectPath,projectArchitecture:e.projectArchitecture,miniprogramRoot:e.miniprogramRoot,pluginRoot:e.pluginRoot,setting:e.setting}}}exports.PipeCPProject=o}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeContext=void 0;const t=e("tslib").__importDefault(e("../../../../services/common/getservice"));let s=0;function o(){return`pipe-req-${++s}-${Date.now()}`}exports.PipeContext=class{constructor(e,r){this.project=e,this.sendRequest=r}async requestPipe(e,r){const t=o(),s=await this.sendRequest({type:"pipe",requestId:t,name:e,params:r});if(s.error)throw new Error(s.error.message);return s.data}async callCompiler(e,...r){const t=o(),s=await this.sendRequest({type:"compiler",requestId:t,method:e,args:r});if(s.error)throw new Error(s.error.message);return s.data}getService(e){return(0,t.default)(e)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeManager=void 0;const t=e("../../original/workerThread"),o=e("../../original/workerThread/config"),i=e("./pipeCPProject");exports.PipeManager=class{constructor(e){this.compiler=e}async executePipe(e,r){return this.runPipeTask(e,r)}async handlePipeIPC(e,r){if("compiler"===e.type)return this.executeCompilerMethod(e.method,e.args,r);if("pipe"===e.type)return this.runPipeTask({pipeName:e.name,params:e.params},r);throw new Error(`unknown pipe request type: ${e.type}`)}destroy(){}async executeCompilerMethod(e,r,t){const o=this.compiler[e];if("function"!=typeof o)throw new Error(`SummerCompiler has no method "${e}"`);return o.call(this.compiler,...r,t)}async runPipeTask(e,r){const{pipeName:n,params:p,backendProjectContext:a,projectContext:s}=e,c=this.compiler.project,u=await i.PipeCPProject.serializeForPipe(c);a&&(u.backendProjectContext=a),s&&(u.projectContext=s);const m={pipeName:n,params:p,projectInfo:u||{}},l=await function(e,r,t){return new Promise(((o,i)=>{const n=setTimeout((()=>{i(new Error(`pipe "${t}" timed out after ${r}ms`))}),r);e.then((e=>{clearTimeout(n),o(e)}),(e=>{clearTimeout(n),i(e)}))}))}((0,t.runTask)(o.TASK_NAME.PIPE_TASK,m),6e4,n);if(l.error){const e=l.error;throw"string"==typeof e?new Error(e):Object.assign(new Error(e.message||"pipe task error"),e)}return l.result}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.runPipeTask=async function(e){const{pipeName:r,params:t,projectInfo:a}=e,c=i.get(r);if(!c)return{error:{message:`pipe "${r}" is not registered in worker`}};try{const e=new s.PipeCPProject(a),r=new n.PipeContext(e,o);return{result:await c.execute(r,t)}}catch(e){return{error:{code:e.code||-1,message:e.message||String(e),stack:e.stack||""}}}};const t=e("../../original/workerThread/task/call_func"),s=e("./pipeCPProject"),n=e("./pipeContext"),a=e("./pipes/index"),i=new Map;for(const e of a.allPipes)i.set(e.name,e);async function o(e){try{const r=await(0,t.call)("handlePipeIPC",e);return{requestId:e.requestId,data:r}}catch(r){return{requestId:e.requestId,error:{code:-1,message:"string"==typeof r?r:r.message||String(r),stack:"string"==typeof r?"":r.stack||""}}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.appservicePipe=void 0,exports.getAppserviceCore=r;const o=e("../utils/appdevserver/getAppService"),i=e("../../../../../../bussinessMonitor/monitor"),n=e("../../types"),s=e("../utils/appservice/getmainpkgsortedjsfiles"),p=e("../utils/trans/transwxmltojs");async function r(e){var t;const n=Date.now(),r=e.project.projectContext;(0,i.BusinessReport)("appserviceCompile","compile start",JSON.stringify({options:r}));try{const a=[];(0,o.getInitJS)(a);const c=Date.now(),l=await async function(e,t){const o=await p.transWXMLToJS(e,{app:!0,cut:!0});return t.push(o.code),o}(e,a),u=Date.now()-c;(0,i.BusinessReport)("appserviceCompile","wxml compiled",JSON.stringify({options:r,duration:u,codeLength:null===(t=l.code)||void 0===t?void 0:t.length}));const g=Date.now(),{hasAppJS:d,pageFiles:v,componentFiles:m,functionalPageFiles:w,otherFiles:C,allFiles:f}=await s(e),h=Date.now()-g;(0,i.BusinessReport)("appserviceCompile","js files sorted",JSON.stringify({options:r,duration:h,hasAppJS:d,pageCount:(null==v?void 0:v.length)||0,componentCount:(null==m?void 0:m.length)||0,totalCount:(null==f?void 0:f.length)||0}));const S=Date.now();await(0,o.getJSCodeBuild)(e,a,d,v,m,w,C,f);const y=Date.now()-S;(0,i.BusinessReport)("appserviceCompile","js code built",JSON.stringify({options:r,duration:y,fileCount:(null==f?void 0:f.length)||0}));const D=Date.now();await(0,o.getAppCode)(e,a,l,m,v);const J=Date.now()-D;(0,i.BusinessReport)("appserviceCompile","appcode generated",JSON.stringify({options:r,duration:J}));const j=a.join("\n"),x=Date.now()-n;return(0,i.BusinessReport)("appserviceCompile","compile success",JSON.stringify({options:r,totalDuration:x,scriptCount:a.length,contentLength:j.length})),j}catch(e){const t=Date.now()-n;throw(0,i.BusinessReport)("appserviceCompile","compile failed",JSON.stringify({options:r,duration:t,error:e instanceof Error?e.message:String(e)})),e}}exports.appservicePipe={name:n.EPipeCMD.APPSERVICE,execute:async(e,t)=>await r(e)}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxmlToGlassEaselPipe=void 0;const l=e("../../../../../services/compilewxml/common/compilewxmlService"),o=e("../types");exports.compileWxmlToGlassEaselPipe={name:o.EPipeCMD.TRANS_WXML_TO_GLASS_EASEL,execute:async(e,i)=>await e.getService(l.ICompilewxmlService).compileWxmlToGlassEasel(i)}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxssPipe=void 0;const s=e("../../../../../services/compilewxss/common/compilewxssService"),c=e("../types");exports.compileWxssPipe={name:c.EPipeCMD.COMPILE_WXSS,execute:async(e,i)=>await e.getService(s.ICompilewxssService).compileWxss(i)}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.allPipes=void 0;const s=e("./wccPipe"),l=e("./compileWxmlToGlassEaselPipe"),p=e("./compileWxssPipe");exports.allPipes=[s.wccPipe,l.compileWxmlToGlassEaselPipe,p.compileWxssPipe]}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pageInitSourcePipe=exports.getPageInitResourceCore=exports.getPageInitResource=void 0;const n=e("tslib").__importDefault(e("path")),o=e("../../../../../../bussinessMonitor/monitor"),r=e("../../types");exports.getPageInitResource=async function(e,t){const o=n.default.join("app",t);return(0,exports.getPageInitResourceCore)(e,o)};exports.getPageInitResourceCore=async function(e,t){var n;const r=Date.now(),i=null===(n=e.project.projectContext)||void 0===n?void 0:n.projectId;(0,o.BusinessReport)("pageInitSourceCompile","compile start",JSON.stringify({projectId:i,filePath:t}));try{const e=t.slice(4,t.length-5),n=`\n <style> </style> <page></page>\n <script>\n var __setCssStartTime__ = Date.now();\n __wxAppCode__['${e}.wxss']();\n var __setCssEndTime__ = Date.now();\n (function() {\n var gf = $gwx( './${e}.wxml' );\n\n if (window.__wxAppCodeReadyCallback__) {\n window.__wxAppCodeReadyCallback__(gf);\n } else {\n document.dispatchEvent(new CustomEvent( "generateFuncReady", {\n detail: {\n generateFunc: gf\n }\n }));\n }\n })();\n <\/script>`,s=Date.now()-r;return(0,o.BusinessReport)("pageInitSourceCompile","compile success",JSON.stringify({projectId:i,filePath:t,rawPath:e,duration:s,contentLength:n.length})),n}catch(e){const n=Date.now()-r;throw(0,o.BusinessReport)("pageInitSourceCompile","compile failed",JSON.stringify({projectId:i,filePath:t,duration:n,error:e instanceof Error?e.message:String(e)})),e}},exports.pageInitSourcePipe={name:r.EPipeCMD.PAGE_INIT_SOURCE,async execute(e,t){const{filepath:n}=t;return await(0,exports.getPageInitResource)(e,n)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pageframePipe=void 0,exports.getPageframeCore=p;const o=e("../utils/common/tools"),n=e("../utils/appdevserver/getwxappcode"),a=e("../../../../../../bussinessMonitor/monitor"),i=e("../../types"),s=e("../utils/trans/transwxmltojs"),r=e("../utils/trans/transwxsstojs");async function p(e,t=!1){var i,p;const _=Date.now(),c=e.project.projectContext;(0,a.BusinessReport)("pageframeCompile","compile start",JSON.stringify({options:c,isMultiPkg:t}));try{const l=[];t||l.push('\n <!DOCTYPE html>\n <html lang="zh-CN">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />\n <meta http-equiv="Content-Security-Policy" content="script-src \'self\' \'unsafe-inline\' \'unsafe-eval\'">\n <link rel="icon" href="data:image/ico;base64,aWNv">\n <script>'),l.push("\n var __mainPageFrameReady__ = window.__mainPageFrameReady__ || function(){}; var __pageFrameStartTime__ = __pageFrameStartTime__ || Date.now(); var __webviewId__ = __webviewId__;\n var __wxAppCode__ = __wxAppCode__ || {}; var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0}; var __vd_version_info__=__vd_version_info__||{};");const m=Date.now(),d=await s.transWXMLToJS(e,{app:!0});l.push(d.code);const u=Date.now()-m;(0,a.BusinessReport)("pageframeCompile","wxml compiled",JSON.stringify({options:c,duration:u,codeLength:null===(i=d.code)||void 0===i?void 0:i.length}));const g=Date.now(),w=await r.transWXSSToJS(e,{app:!0});l.push((0,o.wrapCodeByEval)(w.comm));const v=Date.now()-g;(0,a.BusinessReport)("pageframeCompile","wxss compiled",JSON.stringify({options:c,duration:v,codeLength:null===(p=w.comm)||void 0===p?void 0:p.length}));const f=Date.now(),h=await(0,n.getPageFrameWxAppCode)(e,{app:!0,noJson:!0});l.push(`;(window.eval || __global.__hackEval)(\`${h}\`)`);const y=Date.now()-f;(0,a.BusinessReport)("pageframeCompile","wxappcode generated",JSON.stringify({options:c,duration:y,codeLength:null==h?void 0:h.length})),l.push(";__mainPageFrameReady__() ;var __pageFrameEndTime__ = Date.now()"),t||l.push("<\/script> </head> <body> <div></div> </body> </html>");const x=Date.now()-_;return(0,a.BusinessReport)("pageframeCompile","compile success",JSON.stringify({options:c,totalDuration:x,scriptCount:l.length,totalLength:l.join("").length})),l.join("\n\n")}catch(e){const t=Date.now()-_;throw(0,a.BusinessReport)("pageframeCompile","compile failed",JSON.stringify({options:c,duration:t,error:e instanceof Error?e.message:String(e)})),e}}exports.pageframePipe={name:i.EPipeCMD.PAGEFRAME,async execute(e,t){const{isMultiPkg:o=!1}=t||{};return await p(e,o)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,n){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getInitJS=function(e){e.push('\n var __wxAppData = __wxAppData || {};\n var __wxRoute = __wxRoute || "";\n var __wxRouteBegin = __wxRouteBegin || "";\n var __wxAppCode__ = __wxAppCode__ || {};\n var global = global || {};\n var __WXML_GLOBAL__=__WXML_GLOBAL__ || {};\n var __wxAppCurrentFile__=__wxAppCurrentFile__||"";\n var Component = Component || function(){};\n var definePlugin = definePlugin || function(){};\n var requirePlugin = requirePlugin || function(){};\n var Behavior = Behavior || function(){};\n var __vd_version_info__ = __vd_version_info__ || {};\n ')},exports.getJSCodeBuild=async function(e,n,r,o,t,i,s,p){const _=p.map((e=>`${e}.js`)),c=await Promise.all(_.map((n=>u(e,n,{}))));let f=[],d=[c.map((e=>(e.helpers&&(f=a(f,e.helpers)),e.code))).join("\n")];const v=await l(e,f);d=a(Array.from(v.values()),d),n.push(d.join("\n")),r&&n.push("\n try {\n require(\"app.js\")\n } catch (error) {\n !error.from && console.error('app.js错误:\\n',error)\n throw error\n }")},exports.getBabelCodeByName=c,exports.getBabelHelperAndDepsCode=l,exports.getAppCode=async function(e,n,o,t,a){const i=new r.default;for(const r of t.concat(a)){const t=async function(){n.push(await _.getWxAppCodeOfPage(e,r,o.name))};i.addTask(t)}await i.runAllAsync()};const r=e("tslib").__importDefault(e("../../../../../../../utils/taskmanager")),o=e("../../../../../../../build-server/tasks/common/utils/common/tools"),t=e("../../../../../../../build-server/tasks/common/utils/babel/babelhelpers"),a=e("licia/concat"),i=e("licia/isEmpty"),s=e("licia/unique"),p=e("../../../../../../../build-server/tasks/common/weapp.config"),u=e("../appservice/getjsfile"),_=e("../appservice/getwxappcode");async function c(e,n){return function(e,n){return`define("${(0,o.escapeQuot)(e,'"')}", function(require, module, exports, ${p.NO_BOM_VAR.join(",")}){ ${n} \n})`}(`${n}.js`,await(0,t.getHelperContent)(e.project.setting,n))}async function l(e,n){if(!i(n)){n=s(n);const r=(0,t.getHelperDeps)(e.project,new Set(n)),o=new Map;for(const n of r){const r=await c(e,n);o.set(n,r)}return o}return new Map}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPageFrameWxAppCode=async function(e,t={}){const s=await o.getAppConfig(e),{app:p,page:r}=t;let i;if(!p&&(i=void 0,!i))return"";const u=await n.getFileListJustInPack(e,s,i),d=[];for(let n=0,o=u.length;n<o;n++){const o=await c(u[n],"$gwx");if(d.push(...o),!t.noWXSS){const t=await a(e,u[n]);d.push(...t)}}return d.join("\n")};const n=e("../project/customcomponent"),o=e("../project/appconfig"),s=e("../trans/transwxsstojs");async function c(e,t){const n=[],o=encodeURI(e);return n.push(`__wxAppCode__[decodeURI("${o}") + ".wxml"]=${t}("./" + decodeURI("${o}") + ".wxml")`),n}async function a(e,t){const n=[],o=await s.transWXSSToJS(e,{page:t});if(o.page){const e=encodeURI(t);n.push(`__wxAppCode__[decodeURI("${e}") + ".wxss"]=${o.page}`)}return n}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";const i=e("../../../../../../../build-server/tasks/common/utils/babel/babelhelpers"),s=e("../../../../../../../build-server/tasks/common/utils/transformsourcemap"),r=e("../../../../../../../build-server/tasks/common/utils/project/generatecode.utils"),o=e("../../../../../../../build-server/tasks/common/utils/filerules"),n=e("lodash");function l(e,t,i){const n=function(e){if(e)try{let t="string"==typeof e?JSON.parse(e):e;return t=Object.assign(Object.assign({},t),{mappings:`;${t.mappings}`,sources:(0,s.transformSourceMapSources)(t.sources)}),t}catch(e){}return""}(t.map||""),l=i.hideRules||[];let c=(0,r.wrapSourceCodeInDefine)(e,`\n${t.code}`);return c=(0,r.inlineSourceMap)(c,!o.isFileHidedInDevtools(e,l)&&n||"",i.sourceURL),{code:c,map:n}}module.exports=async function(e,t,s={injectHelpers:!0}){t=decodeURI(t);const r=await async function(e,t){var s,r,o;const c=e.project,a=("miniProgram"===t.type||"game"===t.type?c.miniprogramRoot:c.pluginRoot)||"",{fileName:u}=t,p=await(0,i.tryGetHelperJSFile)(c,u,t.injectHelpersSync);if(p)return{code:p,helpers:[],customTranslated:!1,isBabelIgnore:!1,needCompile:!1,isLargeFile:!1};const m=(0,i.getHelperOutputPath)(c.setting),d=await e.callCompiler("compileJS",{root:a,filePath:u,babelRoot:m,setting:{enhance:null===(s=c.setting)||void 0===s?void 0:s.enhance,es6:null===(r=c.setting)||void 0===r?void 0:r.es6,minify:!1,disableUseStrict:!!c.setting.disableUseStrict,compileWorklet:!!c.setting.compileWorklet},resultType:"dev"}),g=l(u,d,{hideRules:(null===(o=c.debugOptions)||void 0===o?void 0:o.hidedInDevtools)||[],sourceURL:t.sourceURL});return n.cloneDeep(Object.assign(Object.assign(Object.assign({},d),g),{helpers:d.helpers||[]}))}(e,{type:"miniProgram",fileName:t});return{code:r.code,helpers:r.helpers,map:r.map,mtime:r.mtime}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";const i=e("tslib").__importDefault(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),a=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),r=e("../project/appconfig");module.exports=async e=>{let t=await i.default.get("getMainPkgSortedJSFiles");if(t)return a.compileCacheReporter.hitCache("getMainPkgSortedJSFiles"),t;a.compileCacheReporter.startGenCache("getMainPkgSortedJSFiles");const o=await r.getAppConfig(e),l=await e.callCompiler("getMainPkgSortedJSFiles");if(o.functionalPages){const e=l.functionalPageFiles.map((e=>`__wx__/${e}`));e.unshift("__wx__/functional-page"),l.functionalPageFiles=e}return t=l,await i.default.set("getMainPkgSortedJSFiles",t),a.compileCacheReporter.finishGenCache("getMainPkgSortedJSFiles"),t}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";const t=e("tslib"),o=t.__importDefault(e("../../../../../../../utils/taskmanager")),a=e("../../../../../../../build-server/tasks/common/utils/common/tools"),c=t.__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),i=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),n=e("../project/wxappcodejson"),p=e("../project/customcomponent");async function s(e,r,t,o=!0){let c={};try{c=await n(e,decodeURI(r))}catch(e){c={}}let i=`\n var decodePathName = decodeURI("${(0,a.escapeQuot)(r,'"')}")\n __wxAppCode__[decodePathName + ".json"] = ${JSON.stringify(c)}\n __wxAppCode__[decodePathName + ".wxml"] = ${t}("./" + decodePathName + ".wxml")\n `;return o&&(i+="\n __wxRoute = decodePathName\n __wxRouteBegin = true\n __wxAppCurrentFile__ = decodePathName + \".js\"\n try {\n require(__wxAppCurrentFile__)\n } catch (error) {\n // 插件项目不能hack define和require,走这里,异常只能精准到页面,内部的多层依赖的报错无法精准\n !error.from && console.error('页面【' + decodePathName + ']错误:\\n',error)\n throw error\n }"),i}module.exports={getWxAppCode:async function(r,n=!0){let m=await c.default.get(c.CacheKey.miniProgramAppServiceWXAppCode);if(m)return i.compileCacheReporter.hitCache(c.CacheKey.miniProgramAppServiceWXAppCode),m;i.compileCacheReporter.startGenCache(c.CacheKey.miniProgramAppServiceWXAppCode);const d=await(await Promise.resolve().then((()=>t.__importStar(e("../project/appconfig"))))).getAppConfig(r),u=await p.getFileListJustInPack(r,d),l=[],h=new o.default;for(const e of u)h.addTask(s,r,e,"$gwx",n);return l.push(...await h.runAllAsync()),m=(0,a.escapeScript)(l.join("\n")),await c.default.set(c.CacheKey.miniProgramAppServiceWXAppCode,m),i.compileCacheReporter.finishGenCache(c.CacheKey.miniProgramAppServiceWXAppCode),m},getWxAppCodeOfPage:s}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(_,R){"use strict";module.exports={APP_JSON_READ_ERR:10001,APP_JSON_PARSE_ERR:10002,APP_JSON_PAGES_ERR:10003,APP_JSON_ENTRANCE_NOT_FOUND_ERR:1004,APP_JSON_CONTENT_ERR:10005,PAGES_JSON_PARSE_ERR:10006,APP_JSON_WXML_NOT_FOUND:10007,APP_JSON_JS_NOT_FOUND:10008,JSON_CONTENT_ERR:10009,EXT_JSON_PARSE_ERR:10011,EXT_JSON_PAGES_ERR:10012,EXT_JSON_CONTENT_ERR:10013,APPSERVICE_LOSE_WXML:10021,APPSERVICE_LOSE_JS:10022,FILE_NOT_UTF8:10031,BABEL_TRANS_JS_ERR:10032,UGLIFY_JS_ERR:10033,BABILI_JS_ERR:10034,JS_ES6_ERR:10035,FILE_FLAT_ERR:10036,POST_WXSS_ERR:10037,TRANS_WXML_JS_ERR:10040,TRANS_WXSS_JS_ERR:10041,SUMMER_PLUGIN_ERR:10045,SUMMER_PLUGIN_CODE_ERR:10046,VENDOR_MD5_NOT_MATCH:10050,VENDOR_WCC_FILE_NOT_FOUND:10051,VENDOR_WCSC_FILE_NOT_FOUND:10052,CODE_SIZE_EXCEED:10060,GET_GEO_LOCATION_ERR:10070,QCLOUD_SVR_NO_FOUND_ERR:10080,QCLOUD_SVR_POLL_TIMEOUT:10081,QCLOUD_SVR_POLL_DOING:10082,QCLOUD_SVR_UP_DIR_CHECK:10083,PLUGIN_JSON_READ_ERR:10091,PLUGIN_JSON_PARSE_ERR:10092,PLUGIN_JSON_CONTENT_ERR:10093,PLUGIN_PAGE_JSON_PARSE_ERR:10094,PLUGIN_JSON_FILE_NOT_FOUND:10095,PLUGIN_PAGE_JSON_CONTENT_ERR:10096,PLUGIN_TRANS_WXML_JS_ERR:10097,PLUGIN_TRANS_WXSS_JS_ERR:10101,PLUGIN_JS_ES6_ERR:10098,PLUGIN_ONLINE_CODE_UNPACK_ERR:10099,PAGE_JSON_PARSE_ERR:10020,SITE_MAP_JSON_CONTENT_ERROR:10100,CHECK_UPLOAD_STATUS_ERR:10200,CLEAR_SESSION_ERR:10201,GAME_CODE_LIB_MD5_ERR:10202,LOAD_QRCODE_OTHER_ERR:10203,JUMP_QCLOUD_PAGE_ERR:10204,PACK_NPM_ERR:10205,GET_PROJECT_CONFIG_ERR:10206,MINI_PROGRAM_CONSUME_TIMING:10207,MINI_GAME_CONSUME_TIMING:10208,UPLOAD_PROGRESS_FAIIL:10209,UPLOAD_PLUGIN_ERR:10210,UPLOAD_FAIILED:10211,COMPILE_CONDITION_APPID_ERR:10212,COMPILE_CONDITION_PROGRAM_ERR:10213,COMPILE_CONDITION_ERR:10214,COMPILE_CONDITION_ERR_WITH_DETAIL:10215,WIDGET_GET_SEARCH_QUERY_ERROR:10216,QCLOUD_CHOOSE_ENVIRONMENT_ERROR:10217,QCLOUD_UPLOAD_FAIL:10218,TOOLBAR_REMOTE_DEBUG_ERROR:10219,PREPROCESS_UPLOAD_ERROR:10220,DOWNLOAD_SOURCEMAP_ERROR:10221,SOURCEMAP_WRITE_ERROR:10222,CLEAN_USER_AUTH_ERROR:10223,JUMP_WXGIT_ERROR:10224,TCB_DELETE_FAILED:10225,FETCH_REMOTE_SETTING_ERROR:10226,UPLOAD_LOCAL_SETTING_ERROR:10227,UPLOAD_SOURCE_CODE_ERROR:10228,UPLOAD_EXCEED_SIZE_LIMIT:10230,PROJECT_CONFIG_JSON_ERROR:10231,TEST_CODE_RUN_ERROR:10232,AUTO_UPLOAD_ERROR:10233,CLOUD_UPLOAD_OPEN_ERROR:10234,CLOUD_BUILD_OPEN_ERROR:10201,WEBVIEW_NETWORK_ERROR:20010,APPSERVICE_NETWORK_ERROR:20011,PLUGIN_ERROR:20012,ONLINE_CODE_UNPACK_ERR:3e4,URL_SCHEME_INVALID_ERROR:31e3,URL_SCHEME_OTHER_ERROR:31001,APP_UPGRADE_ERROR:35e3,APP_ADD_AUTHO_PAGE_ERROR:35001}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wrapCodeByEval=function(e){return`;(window.eval || __global.__hackEval)('${e}')`}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,a){"use strict";const o=e("tslib"),t=e("../../../../../../../services/store/common/storeService"),i=o.__importDefault(e("../../../../../../../services/common/getservice")),n=e("../../../../../../../build-server/tasks/common/utils/common/tools"),r=o.__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),s=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),c=e("./helper/theme"),l=e("../../../../../../../bussinessMonitor/monitor"),p=e("path"),g=e("./appjson"),d=e("./pagejson");async function u(e,a){const t=await g(e),i=function(e,a){const o=e.subPackages||e.subpackages;return Object.assign(Object.assign({},e),{pages:e.pages||[],resizable:!!e.resizable,subPackages:o,debug:!!e.debug,widgets:e.widgets||[],customClose:!!e.customClose,workers:e.workers||"",cloud:!!e.cloud,global:{window:Object.assign(Object.assign({},(0,c.getDefaultWindowConfig)(e.darkmode&&a)),e.window)},page:{},networkTimeout:Object.assign({request:6e4,uploadFile:6e4,connectSocket:6e4,downloadFile:6e4},e.networkTimeout),ext:e.ext||{},extAppid:e.extAppid||"",plugins:e.plugins||{},mainPlugins:Object.assign({},e.plugins),preloadRule:e.preloadRule,permission:e.permission,requiredBackgroundModes:e.requiredBackgroundModes,functionalPages:e.functionalPages,style:e.style,useExtendedLib:e.useExtendedLib||{},supportedMaterials:e.supportedMaterials||[],usingShopPlugin:e.usingShopPlugin||void 0,embeddedAppIdList:e.embeddedAppIdList,halfPage:e.halfPage,resolveAlias:e.resolveAlias,renderer:e.renderer,enablePassiveEvent:e.enablePassiveEvent,debugOptions:e.debugOptions,requiredPrivateInfos:e.requiredPrivateInfos||[],__warning__:e.__warning__||""})}(t,a),n=(e,a)=>{a.__warning__&&(i.__warning__&&(i.__warning__+="\n"),i.__warning__+=`${e}: ${a.__warning__}`)},r=i.pages;i.entryPagePath=t.entryPagePath?`${t.entryPagePath}.html`:`${r[0]}.html`;for(const a of r){const t=await d(e,`${a}`)||{};n(a,t);const{singlePage:r}=t,s=o.__rest(t,["singlePage"]);i.page[`${a}.html`]={window:s||{},singlePage:r,renderer:t.renderer}}if(i.accountCardPackage)for(const e of i.accountCardPackage.cardList){const a=p.posix.join(i.accountCardPackage.root,e.componentPath);i.page[`${a}.html`]={window:{}}}i.page=Object.assign({},i.page);const s=Object.assign({},t.tabBar),l=[].concat(s.list||[]),u=[];for(const e of l){const a=Object.assign({},e);a.pagePath+=".html",u.push(a)}s.list=u,i.tabBar=s,t.darkmode&&(i.supportDarkmode=!0),i.lazyCodeLoading=t.lazyCodeLoading,i.publibSupportLazyload=!1,i.isLazyLoad=!1;let m={};const{themeLocation:h}=t;return void 0!==h&&""!==h.trim().replace(/^\.\//,"")&&(m=await e.callCompiler("checkThemeJSON",{themeLocation:h})),await async function(e){var a;const{project:o,isDarkMode:t,themeLocation:i,themeJSON:n,appConfig:r}=e,s=p.join(o.projectpath,o.miniprogramRoot||""),{windowConfigRules:l,tabbarRules:g,tabbarListItemRules:d}=(0,c.checkThemeRules)(s,o);(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:"app.json or ext.json",windowConfig:r.global.window,rules:l,keyPrefix:'["window"]',isPlugin:!1});for(const e in r.page){const a=e.replace(/\.html$/,"");(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:`${a}.json`,windowConfig:r.page[e].window||{},rules:l,keyPrefix:"",isPlugin:!1})}if(r.tabBar){(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:"app.json or ext.json",windowConfig:r.tabBar||{},rules:g,keyPrefix:'["tabBar"]',isPlugin:!1});for(let e=0;e<(null===(a=r.tabBar)||void 0===a?void 0:a.list.length);e++)(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:"app.json or ext.json",windowConfig:r.tabBar.list[e],rules:d,keyPrefix:`["tabBar"]["list"][${e}]`,isPlugin:!1})}}({project:e.project,themeJSON:m,themeLocation:h,isDarkMode:t.darkmode&&a,appConfig:i}),i}module.exports={getAppConfig:async function(e,a=!1){var o,c;const p=Date.now(),g=e.project.projectContext;(0,l.BusinessReport)("appconfig","getAppConfig start",JSON.stringify({options:g,forceDarkMode:a}));try{let d;const m=e.project.backendProjectContext;let h;d=m?m.compileOptions.deviceState.darkmode||!1:await(0,i.default)(t.IStoreService).getValue("toolbar","darkmode")||!1,h=d||a?await async function(e){var a,o;const t=(await(null===(o=(a=e.project).attr)||void 0===o?void 0:o.call(a))).platform;let i=await r.default.get(r.CacheKey.miniProgramAppConfigDarkMode);if((null==i?void 0:i.value)&&i.platform===t)s.compileCacheReporter.hitCache(r.CacheKey.miniProgramAppConfigDarkMode);else{s.compileCacheReporter.startGenCache(r.CacheKey.miniProgramAppConfigDarkMode);const a=await u(e,!0);i={platform:t,value:(0,n.makeDeepReadonly)(a)},await r.default.set(r.CacheKey.miniProgramAppConfigDarkMode,i),s.compileCacheReporter.finishGenCache(r.CacheKey.miniProgramAppConfigDarkMode)}return i.value}(e):await async function(e){var a,o;const t=(await(null===(o=(a=e.project).attr)||void 0===o?void 0:o.call(a))).platform;let i=await r.default.get(r.CacheKey.miniProgramAppConfig);if((null==i?void 0:i.value)&&i.platform===t)s.compileCacheReporter.hitCache(r.CacheKey.miniProgramAppConfig);else{s.compileCacheReporter.startGenCache(r.CacheKey.miniProgramAppConfig);const a=await u(e,!1);i={platform:t,value:(0,n.makeDeepReadonly)(a)},await r.default.set(r.CacheKey.miniProgramAppConfig,i),s.compileCacheReporter.finishGenCache(r.CacheKey.miniProgramAppConfig)}return i.value}(e);const f=Date.now()-p;return(0,l.BusinessReport)("appconfig","getAppConfig success",JSON.stringify({options:g,duration:f,pageCount:(null===(o=h.pages)||void 0===o?void 0:o.length)||0,subPackageCount:(null===(c=h.subPackages||h.subpackages)||void 0===c?void 0:c.length)||0,hasDarkMode:!!d||a})),h}catch(e){const a=Date.now()-p;throw(0,l.BusinessReport)("appconfig","getAppConfig failed",JSON.stringify({options:g,duration:a,error:e instanceof Error?e.message:String(e)})),e}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";const i=e("tslib").__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),a=e("../../../../../../../build-server/tasks/common/utils/cache/reporter");module.exports=async e=>{let r=await i.default.get(i.CacheKey.miniProgramCompiledAppJSON);if(r)return a.compileCacheReporter.hitCache(i.CacheKey.miniProgramCompiledAppJSON),r;a.compileCacheReporter.startGenCache(i.CacheKey.miniProgramCompiledAppJSON);try{r=await e.callCompiler("getAppJSON")}catch(e){throw e.message=`app.json ${e.message}`,e}return await i.default.set(i.CacheKey.miniProgramCompiledAppJSON,r),a.compileCacheReporter.finishGenCache(i.CacheKey.miniProgramCompiledAppJSON),r}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(o,n){"use strict";const t=o("../web/processPath"),e=o("path"),s=(o,n)=>e.posix.normalize(e.join(o,n).replace(/^\/+/,"")).replace(/\\/g,"/"),i=(o,n)=>o.endsWith(n)?o:o+n,c=(o,n)=>{let e;const s=n.subPackages||n.subpackages;if(Array.isArray(s))for(const n of s)if(n&&"string"==typeof n.root&&(0,t.isLeftSubPathOfRight)(o,i(n.root,"/"))){e=n;break}return e};const a=async(o,n)=>{const e=await async function(o){return(await o.callCompiler("getAllPageAndComponent")).map((o=>`${o}.json`))}(o),i=new Set;if(n.pages)for(const o of n.pages)i.add(o);const a=n.subPackages||n.subpackages;if(Array.isArray(a))for(const o of a)if(o&&"string"==typeof o.root&&Array.isArray(o.pages))for(const n of o.pages){const t=s(o.root,String(n));i.add(t)}const r={};for(const s of e){const e=s.replace(/\.json$/,"");if("app"===(0,t.normalizePath)(e))continue;const i=await o.callCompiler("getPageJSON",e);if(i.usingComponents||i.componentGenerics||!0===i.component){const o=c(e,n);r[e]={config:o,file:s,pageJSON:i}}}for(const t of i)if(!r[t]){const e=await o.callCompiler("getPageJSON",t);r[t]={config:c(t,n),file:`${t}.json`,pageJSON:e||{}}}return r};async function r(o,n,t){const e=await a(o,n),s=[];for(const o in e){const n=e[o];t?n.config&&n.config.root===t.root&&s.push(o):n.config||s.push(o)}return[...s]}module.exports={getFileListJustInPack:r,getWxssCompileConfig:async function(o,n,t){return await r(o,n,t)},getWxmlCompileConfig:async function(o,n,t){let e=[],s=0;const i=await a(o,n);for(const o in i){const n=i[o];if(!n)continue;if(!t&&n.config||t&&!n.config||t&&n.config&&t.root!==n.config.root)continue;const c=n.pageJSON;if(c&&(c.usingComponents||c.componentGenerics)){e.push(`./${o}.wxml`);const n=Object.assign(Object.assign({},c.usingComponents),c.componentGenerics);s++,e.push(Object.keys(n).length),e=e.concat(Object.keys(n))}}return e.unshift(s),e},getWxmlCompileLazyConfig:async function(o,n,t){return(await r(o,n,t)).map((o=>`./${o}`))},getCustomComponentsConfig:a,findSubpackageForFile:c}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkTabbarListItemIconPath=d,exports.checkThemeRules=function(e,o){const t=(t,i)=>{const r=n.join(e,i),a=o?d(t,r,o):[];a.length>0&&g({msg:a.join("\n"),filePath:"app.json or ext.json"})};return{windowConfigRules:[{key:"navigationBarTextStyle",valids:["black","white"]},{key:"backgroundTextStyle",valids:["dark","light"]},{key:"navigationBarBackgroundColor",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"backgroundColorTop",hexColor:!0},{key:"backgroundColorBottom",hexColor:!0}],tabbarRules:[{key:"selectedColor",hexColor:!0},{key:"color",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"borderStyle",valids:["black","white"]}],tabbarListItemRules:[{key:"iconPath",validate:t},{key:"selectedIconPath",validate:t}]}},exports.getDefaultWindowConfig=function(e){return e?{backgroundColor:"#232323",backgroundTextStyle:"light"}:{backgroundColor:"#ffffff",backgroundTextStyle:"dark"}},exports.checkVariables=function(e){var o;const{windowConfig:t,themeLocation:i,filePath:r,isDarkMode:a,themeJSON:n,rules:c,keyPrefix:s,isPlugin:d=!1}=e,u=a?n.dark||{}:n.light||{},k=a?"dark":"light";for(const e of c)if((t[e.key]||"").startsWith("@")){const a=(null===(o=t[e.key])||void 0===o?void 0:o.slice(1))||"";if(a&&void 0===i){if(d)continue;g({msg:f.config.THEME_JSON_SHOULD_EXIST.format(`${s}["${e.key}"]`,`"@${a}"`,'appJSON["themeLocation"]'),filePath:r})}const n=u[a];if(void 0===n){if(d)continue;g({msg:f.config.JSON_VARIABLE_VALUE_NOT_FOUND.format(`${s}["${e.key}"]: "@${a}"`,`${i}["${k}"]`),filePath:r})}void 0!==n&&(Array.isArray(e.valids)&&e.valids.indexOf(n)<0&&g({msg:f.config.THEME_JSON_VALUE_SHOULD_BE.format(`${i}["${k}"]["${a}"]`,`${r} ${s}["${e.key}"]`,`${JSON.stringify(e.valids)}`),filePath:i}),e.hexColor&&!l.isHexColor(n)&&g({msg:f.config.THEME_JSON_VALUE_SHOULD_BE.format(`${i}["${k}"]["${a}"]`,`${r} ${s}["${e.key}"]`,"hexColor"),filePath:i}),e.validate&&e.validate(`${s}["${e.key}"]`,n),t[e.key]=n)}};const t=e("tslib"),i=e("../../../../../../../../services/locales/common/locales"),r=t.__importDefault(e("../../../../../../../../services/common/getservice")),a=e("../../../../../../../../services/pluginFileReader/common/pluginFileReader"),n=e("path"),l=e("../../../../../../../../utils/colorutils"),c=e("../../common/apperrcode.config"),s=[".png",".jpg",".jpeg"],f=(0,r.default)(i.ILocalesService).getLocales();function d(e,o,t){const i=[],l=(0,r.default)(a.IPluginFileReaderService).stat(t,o);if(!l)return i.push(f.config.NOT_FOUND.format(e)),i;(t.setting||{}).MaxTabbarIconSize,l.mtimeMs;const c=n.extname(o);return s.indexOf(c)<0&&i.push(f.config.FILE_EXT_FORMAT_ERROR.format(e,s.join("、"))),i}function g(e={msg:"",filePath:"app.json"}){const{msg:o,filePath:t}=e,i=new Error(o);throw i.code=c.JSON_CONTENT_ERR,i.path=t,i}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";const a=e("tslib"),t=e("../../../../../../../build-server/tasks/common/utils/interfacebuilder/registry"),r=a.__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),o=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),s=e("path"),n=e("lodash");module.exports=async(e,i)=>{const a=e.project,c=`${a.miniprogramRoot}${i}.json`,m=s.posix.join(a.projectpath,c);let l,p=await r.default.get(r.CacheKey.miniProgramCompiledPageJSON);if(p||(p={},await r.default.set(r.CacheKey.miniProgramCompiledPageJSON,p)),p[m]&&!a.isIB)return o.compileCacheReporter.hitCache(r.CacheKey.miniProgramCompiledPageJSON),n.cloneDeep(p[m]);o.compileCacheReporter.startGenCache(r.CacheKey.miniProgramCompiledPageJSON);try{l=await e.callCompiler("getPageJSON",i),l.usingComponents||(l.usingComponents={})}catch(e){throw e.message=`${c} ${e.message}`,e}if(a.isIB&&i.indexOf("miniprogram_npm")<0){const e=t.interfaceBuilderRegistry.get(6);if(e){const i=e(a,l);l=Object.assign(Object.assign({},l),{usingComponents:Object.assign(Object.assign({},l.usingComponents),i)})}}return p[m]=l,await r.default.set(r.CacheKey.miniProgramCompiledPageJSON,p),o.compileCacheReporter.finishGenCache(r.CacheKey.miniProgramCompiledPageJSON),n.cloneDeep(p[m])}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";const i=e("tslib").__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),n=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),t=e("lodash"),r=e("./pagejson"),a=e("./appconfig");module.exports=async function(e,o){let p=await i.default.get(i.CacheKey.miniProgramWXAppCodeJSON);if(p||(p={},await i.default.set(i.CacheKey.miniProgramWXAppCodeJSON,p)),p[o]&&!e.project.isIB)return n.compileCacheReporter.hitCache(i.CacheKey.miniProgramWXAppCodeJSON),t.cloneDeep(p[o]);n.compileCacheReporter.startGenCache(i.CacheKey.miniProgramWXAppCodeJSON);const c=await a.getAppConfig(e),s=await r(e,o);if(s.usingComponents&&Object.keys(s.usingComponents).length>0){const e={};for(const o in s.usingComponents){const i=s.usingComponents[o]||"";c.plugins?e[o]=i.replace(/^plugin:\/\/([^/]*)\/(.*)/,((e,o,i,n,t)=>{var r;const a=(null===(r=c.plugins)||void 0===r?void 0:r[o])||void 0;return a?`plugin://${a.provider}/${i}`:t})):e[o]=i}s.usingComponents=e}return p[o]=s,await i.default.set(i.CacheKey.miniProgramWXAppCodeJSON,p),n.compileCacheReporter.finishGenCache(i.CacheKey.miniProgramWXAppCodeJSON),t.cloneDeep(p[o])}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";const n=t("../web/processPath"),o=t("../../../types"),a=10040,i=t("../project/customcomponent"),c=t("../project/appconfig");async function r(t,e){try{return await async function(t,e){const{appConfig:a,config:c,lazyload:r,cut:l}=e,{srcPath:s,files:p,hasWxs:f,usePartialReplaceContent:u,partialEnable:g,replaceContent:m}=await async function(t,e){const{appConfig:o,config:a,lazyload:i}=e,c=await t.callCompiler("getPackageWxmlAndWxsFiles",(null==a?void 0:a.root)||"__APP__");let r=c.wxmlFiles,l=c.wxsFiles;Object.entries(c.content).forEach((([t,e])=>{t.startsWith("./")||(c.content[`./${t}`]=e)})),a&&i&&(r=r.filter((t=>(0,n.isLeftSubPathOfRight)(t,a.root))),l=l.filter((t=>(0,n.isLeftSubPathOfRight)(t,a.root))));let s=r.concat(l),p=!1;(null==l?void 0:l.length)>0&&(p=!0),s=s.map((t=>`./${t}`));let f={};return c&&(f=c.content),{srcPath:t.project.miniprogramRoot||"",files:s,hasWxs:p,usePartialReplaceContent:!1,partialEnable:!1,replaceContent:f}}(t,e);if(0===p.length&&r)return{pages:{},names:{}};const C=c?`$${Buffer.from(c.root).toString("hex")}`:"$gwx",d=">_<"+Date.now()%1e4,w=(await i.getWxmlCompileConfig(t,a,c)).join(d);let h="";if(r){let e=await i.getWxmlCompileLazyConfig(t,a,c);if(g)if(u)e=["index"];else{const t=p.map((t=>t.replace(/^\.\//,"")));e=e.filter((e=>t.includes(`${e}.wxml`.replace(/^\.\//,""))))}h=e.join(d)}return r&&!h?{pages:{},names:{}}:await t.requestPipe(o.EPipeCMD.WCC,{files:p,isCut:l,lazyloadConfig:h,configSplit:d,configContent:w,hasWxs:f,genfuncName:C,cwd:s,replaceContent:m,isMiniAppProject:!1})}(t,e)}catch(t){throw function(t){const e=new Error(t.toString());return e.code=a,e.msgForConsole=(null==t?void 0:t.message)||t.toString(),e}(t)}}module.exports={transWXMLToJS:async function(t,e={}){const n=await c.getAppConfig(t),{app:o,page:a,cut:i,hotReloadFile:l}=e;let s;if(l){s=void 0;const{name:e,code:o}=await r(t,{appConfig:n,config:s,cut:i});return{name:e,code:o}}if(!o&&(s=null,!s))return{code:"",name:"$gwx"};const p=await r(t,{appConfig:n,config:s,cut:i}),{name:f,code:u}=p;return{name:f,code:u}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(o,t){"use strict";const n=o("../../../types"),e=o("path"),s=o("../project/appconfig"),a=o("../project/customcomponent");async function i(o,t){try{return await async function(o,t){const{appConfig:s,config:i,lazyload:c}=t,r=await o.callCompiler("getPackageWxssFiles",(null==i?void 0:i.root)||"__APP__"),p=r.wxssFiles,l={};p.forEach((o=>{l[o]=r.content[o]||""})),Object.entries(l).forEach((([o,t])=>{o.startsWith("./")||(l[`./${o}`]=t)}));const u={};p.forEach((o=>{u[o]=!0}));const g=(null==i?void 0:i.pages.map((o=>e.posix.join(i.root,o))))||s.pages,f=[];let m=0;g.forEach((o=>{u[`${o}.wxss`]&&(m++,f.push(`./${o}.wxss`),delete u[`${o}.wxss`])})),(await a.getWxssCompileConfig(o,s,i)).forEach((o=>{u[`${o}.wxss`]&&(m++,f.push(`./${o}.wxss`),delete u[`${o}.wxss`])}));for(const o in u)"app.wxss"===o&&0===m&&(m=1),f.push(`./${o}`);let w={};r&&(w=r.content),w=await async function(o){const{appConfig:t,config:n,replaceContent:e}=o;return Object.assign({},e)}({appConfig:s,config:i,replaceContent:w});const C=o.project.miniprogramRoot||"";return await o.requestPipe(n.EPipeCMD.COMPILE_WXSS,{pageCount:m,files:f,cwd:C,subPackage:null==i?void 0:i.root,lazyload:c,replaceContent:w})}(o,t)}catch(o){if("CustomError"===(null==o?void 0:o.type))throw o;throw function(o){const t=new Error(o.toString());return t.code=10041,t.msgForConsole=o.message,console.error(o.message),t}(o)}}module.exports={transWXSSToJS:async function(o,t={}){const n=await s.getAppConfig(o),{app:e,page:a,hotReloadFile:c}=t;if(c){const t=void 0,e=await i(o,{appConfig:n,config:t});return{comm:e.comm,page:(null==e?void 0:e[`./${c}`])||""}}if(e){const t=await i(o,{appConfig:n})||{};return{comm:(null==t?void 0:t.comm)||""}}const r=`./${a}.wxss`;{const t=await i(o,{appConfig:n});return{comm:null==t?void 0:t.comm,page:(null==t?void 0:t[r])||""}}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.normalizePath=i,exports.isLeftSubPathOfRight=function(e,t){void 0===e&&(console.error(new Error("The child string is undefined here, please check!!")),e="");const r=e.startsWith(t),n=function(e,t){if(!t)return!0;if(t=i(t),e=i(e),!t.endsWith("/")){if(e===t)return!0;t=`${t}/`}return!!e.startsWith(t)}(e,t);return r===n||n||console.error(new Error(`${e} ${t} difference check sub path here! new result: ${n}`)),n};const r=e("tslib").__importStar(e("path"));function i(e="",t={}){let i=r.posix.normalize(e.replace(/\\/g,"/"));return(e.startsWith("//")||e.startsWith("\\\\"))&&(i.startsWith("//")||(i=`/${i}`)),t.leading?i.startsWith(t.leading)||(i=`${t.leading}${i}`):t.noLeading&&i.startsWith(t.noLeading)&&(i=i.slice(t.noLeading.length)),t.trailing?i.endsWith(t.trailing)||(i=`${i}${t.trailing}`):t.noTrailing&&i.endsWith(t.noTrailing)&&(i=i.slice(0,-t.noTrailing.length)),i}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wccPipe=void 0;const c=e("../../../../../services/compilewxml/common/compilewxmlService"),o=e("../types");exports.wccPipe={name:o.EPipeCMD.WCC,async execute(e,i){const{files:o,isCut:t,lazyloadConfig:n,configSplit:r,configContent:l,hasWxs:s,genfuncName:p,cwd:a,replaceContent:m,isMiniAppProject:u}=i;return await e.getService(c.ICompilewxmlService).compileWxml({files:o,isCut:t,lazyloadConfig:n,configSplit:r,configContent:l,hasWxs:s,genfuncName:p,cwd:a,replaceContent:m,isMiniAppProject:u})}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(E,e){"use strict";var S,_;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EPipeCMD=void 0,(_=S||(exports.EPipeCMD=S={})).WCC="WCC",_.TRANS_WXML_TO_GLASS_EASEL="TRANS_WXML_TO_GLASS_EASEL",_.COMPILE_WXSS="COMPILE_WXSS",_.PAGEFRAME="PAGEFRAME",_.PAGE_INIT_SOURCE="PAGE_INIT_SOURCE",_.APPSERVICE="APPSERVICE"}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";const n=["window","top","document","frames","self","location","navigator","localStorage","history","Caches","screen","alert","confirm","prompt","fetch","XMLHttpRequest","WebSocket","webkit","WeixinJSCore","Reporter","print","URL","DOMParser","requestAnimationFrame","getComputedStyle","Node","upload","preview","build","showDecryptedInfo","cleanAppCache","syncMessage","checkProxy","showSystemInfo","showMyOpenId","restoreLocalData","openVendor","openCrashDir","openCache","openEngine","cleanEngineWASM","openEditorCache","openToolsLog","showRequestInfo","help","showDebugInfoTable","closeDebug","showDebugInfo","__global","getMessageTunnelInfo","loadBabelMod","openInspect","openGameEngineDebugMode","closeGameEngineDebugMode","openGameEngineAssetsInspect","openUserDataPath"].join(",");module.exports={noBrowser:n}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";const n=e("./appservice.config");module.exports={inlineSourceMap:function(e,r,n){try{if(r){const o="string"==typeof r?r:JSON.stringify(r);return`${e}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${Buffer.from(o).toString("base64")}${n?`\n//# sourceURL=${n}`:""}`}}catch(e){}return e},inlineSourceMapFile:function(e,r){try{if(r)return`${e}\n//# sourceMappingURL=${r}`}catch(e){console.error(e)}return e},wrapSourceCodeInDefine:function(e,r,o=""){return`define("${e.replace(/"/g,'\\"')}", (function(require, module, exports, ${n.noBrowser}){ ${r}\n}));${o}`},wrapGameSourceCodeInDefine:function(e,r,n=""){return`define("${e.replace(/"/g,'\\"')}", (function(require, module, exports, process){ ${r}\n}));${n}`}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,n){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,n){try{return{success:!0,content:await d(e,n)}}catch(t){return{success:!1,content:await(0,i.handleError)(e,n,t)}}},exports.getBabelCodeByName=g,exports.getBabelHelperAndDepsCode=h,exports.getAppCode=v;const t=e("tslib"),r=e("../../../utils/tools"),a=e("../trans/transwxmltojs"),o=e("../../../utils/helper_util"),i=e("../utils/handleerror/handleerror"),s=t.__importDefault(e("./getjsfile")),c=e("licia/concat"),p=e("licia/isEmpty"),u=e("licia/unique"),l=e("../utils/taskmanager"),_=e("./getmainpkgsortedjsfiles"),f=e("./getwxappcode"),w=e("./appservice.config");async function d(e,n){const t=[];!function(e){e.push('\n var __wxAppData = __wxAppData || {};\n var __wxRoute = __wxRoute || "";\n var __wxRouteBegin = __wxRouteBegin || "";\n var __wxAppCode__ = __wxAppCode__ || {};\n var global = global || {};\n var __WXML_GLOBAL__=__WXML_GLOBAL__ || {};\n var __wxAppCurrentFile__=__wxAppCurrentFile__||"";\n var Component = Component || function(){};\n var definePlugin = definePlugin || function(){};\n var requirePlugin = requirePlugin || function(){};\n var Behavior = Behavior || function(){};\n var __vd_version_info__ = __vd_version_info__ || {};\n ')}(t);const r=await async function(e,n,t){const r=await(0,a.transWXMLToJS)(e,n,{app:!0});return t.push(r.code),r}(e,n,t),{hasAppJS:o,pageFiles:i,componentFiles:p,functionalPageFiles:u,otherFiles:l,allFiles:f}=await _(e,n),{otherJsFiles:w,jsPagesFiles:d,components:g}=await n.getAllSortedJSFiles(),m=w.concat(d).concat(g);return o&&m.push("app.js"),await async function(e,n,t,r,a,o,i,p,u,l){const _=u.map((e=>`${e}.js`)),f=await Promise.all(l.map((t=>{const r=(0,s.default)(e,n,t,{});return new Promise((e=>{r.then((n=>{e(Object.assign(Object.assign({},n),{scriptLink:t}))}))}))})));let w=[],d=[f.map((e=>(e.helpers&&(w=c(w,e.helpers)),_.indexOf(e.scriptLink)>-1?e.code:""))).filter((e=>!!e)).join("\n")];const g=await h(e,w);d=c(Array.from(g.values()),d),t.push(d.join("\n")),r&&t.push("\n try {\n require(\"app.js\")\n } catch (error) {\n !error.from && console.error('app.js错误:\\n',error)\n throw error\n }")}(e,n,t,o,0,0,0,0,f,m),await v(e,n,t,r,p,i),t.join("\n")}async function g(e,n){return function(e,n){return`define("${(0,r.escapeQuot)(e,'"')}", function(require, module, exports, ${w.noBrowser}){ ${n} \n})`}(`${n}.js`,await(0,o.getHelperContent)(e,n))}async function h(e,n){if(!p(n)){n=u(n);const t=(0,o.getHelperDeps)(e,new Set(n)),r=new Map;for(const n of t){const t=await g(e,n);r.set(n,t)}return r}return new Map}async function v(e,n,t,r,a,o){const i=new l;for(const s of a.concat(o)){const a=async function(){t.push(await f.getWxAppCodeOfPage(e,n,s,r.name))};i.addTask(a)}await i.runAllAsync()}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileMiniProgramJS=exports.getCompiledJS=void 0;const i=e("../../../utils/tools"),s=e("../../../utils/helper_util"),r=e("../utils/transformsourcemap"),a=e("path"),o=e("lodash");async function n(e,t,i,s){const{relativePath:a,fileName:o}=i,n=await t.compileJS({root:a,filePath:o,babelRoot:s,sourceCode:i.sourceCode,setting:e.setting||{}}),{code:c}=n;return Object.assign(Object.assign(Object.assign({},n),((e,t)=>{let i,s="",a="";if(t)try{i="string"==typeof t?JSON.parse(t):t,i=Object.assign(Object.assign({},i),{mappings:`;${i.mappings}`}),s=JSON.stringify(i),a=JSON.stringify(Object.assign(Object.assign({},i),{sources:(0,r.transformSourceMapSources)(i.sources)})),e=`\n${e}`}catch(e){s="",a="",i=void 0}return{code:e,map:i,mapString:s,basenameMapString:a}})(c,n.map)),{customTranslated:!n.isBabelIgnore&&!n.isLargeFile})}const c=async(e,t,i)=>{const r=(e=>(0,s.getHelperOutputPath)(e.setting))(e);return await n(e,t,i,r)};exports.getCompiledJS=async(e,t,s)=>{const{relativePath:r,fileName:n,onAfterRun:p}=s,l=(0,i.normalizePath)(a.posix.join(e.projectPath,r,n)),g=await c(e,t,Object.assign({},s));return g.filePath=l,"function"==typeof p&&p(),o.cloneDeep(Object.assign(Object.assign({},g),{helpers:g.helpers.reduce(((e,t)=>(e[t]=!0,e)),{})}))};exports.compileMiniProgramJS=async(e,t,i)=>await(0,exports.getCompiledJS)(e,t,{fileName:i,relativePath:e.miniprogramRoot||"",resultType:"dev",type:"miniProgram"})}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";const r=e("tslib"),t=e("../utils/transformsourcemap"),s=r.__importDefault(e("./generatecode.utils")),i=e("./getcompiledjs"),{inlineSourceMap:c,wrapSourceCodeInDefine:n,wrapGameSourceCodeInDefine:u}=s.default;let a,l=[];let m,d=[];module.exports=async function(e,o,r,s={injectHelpers:!0}){r=decodeURI(r);let p,f="";p=await(0,i.compileMiniProgramJS)(e,o,r),p.isBabelIgnore&&!s.noWarnings&&function(e){d.push(e),m&&clearTimeout(m),m=setTimeout((()=>{d=[]}),1e3)}(r),p.isLargeFile&&!s.noWarnings&&function(e){l.push(e),a&&clearTimeout(a),a=setTimeout((()=>{a=void 0,l=[]}),1e3)}(r);const g=p.customTranslated?Object.keys(p.helpers):[],S=s.isGame?u:n,y=function(e,o){return o.injectHelpers&&(null==e?void 0:e.length)?`loadBabelMod(${JSON.stringify(e)}${o.injectHelpersSync?", {sync: true}":""});`:""}(g,s);return p.code=S(r,p.code,y),s.formatResult&&(p=s.formatResult(p)),f=p.customTranslated?s.sourceURL?c(p.code,"",s.sourceURL):c(p.code,""):p.map?s.sourceURL?c(p.code,JSON.stringify(Object.assign(Object.assign({},p.map),{sources:(0,t.transformSourceMapSources)(p.map.sources)})),s.sourceURL):c(p.code,JSON.stringify(p.map)):p.code,{code:f,helpers:g}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";const a=t("tslib"),i=a.__importDefault(t("../utils/appconfig/appconfig")),l=a.__importDefault(t("../../../utils/packOptionsHelper.js"));module.exports=async(t,e)=>{l.default.updateState(t);const a=await i.default.getAppConfig(t,e),n=await e.getMainPkgSortedJSFiles();let p;for(p in n)"hasAppJS"!==p&&(n[p]=l.default.filter(n[p].map((t=>`${t}.js`))).map((t=>t.replace(/\.js$/,""))));if(a.functionalPages){const t=n.functionalPageFiles.map((t=>`__wx__/${t}`));t.unshift("__wx__/functional-page"),n.functionalPageFiles=t}return n}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,t,n){try{return{success:!0,content:await c(e,t,n)}}catch(n){return{success:!1,content:await(0,a.handleError)(e,t,n)}}},exports.getSubpackageAppServiceBuildCore=c;const n=e("tslib"),s=e("../trans/transwxmltojs"),a=e("../utils/handleerror/handleerror"),r=n.__importDefault(e("./getjsfile")),i=e("./getappservice"),o=e("./getsubpkgsortedjsfiles");async function c(e,t,n){const a=[],c=n.root,u=await async function(e,t,n,a){const r=await(0,s.transWXMLToJS)(e,t,{page:n,app:!1});return a.push(r.code),r}(e,t,c,a),{allFiles:p,componentFiles:l,pageFiles:d}=await o(e,t,c);return await async function(e,t,n,s){const a=[(await Promise.all(s.map((n=>{const s=(0,r.default)(e,t,`${n}.js`,{});return new Promise((e=>{s.then((t=>{e(Object.assign(Object.assign({},t),{scriptLink:n}))}))}))})))).map((e=>e.code)).join("\n")];n.push(a.join("\n"))}(e,t,a,p),await(0,i.getAppCode)(e,t,a,u,l,d),a.join("\n")}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";const i=e("tslib"),l=i.__importDefault(e("../utils/appconfig/appconfig")),s=i.__importDefault(e("../../../utils/packOptionsHelper"));module.exports=async(e,t,i)=>{const a=[],r=[],n=[],c=[];if(await l.default.checkIsInSubPackage(e,t,i)){const e=await t.getSubPkgSortedJSFiles(i);let l;for(l in e)"entryJS"!==l&&(e[l]=s.default.filter(e[l].map((e=>`${e}.js`))).map((e=>e.replace(/\.js$/,""))));return Object.assign(Object.assign({},e),{allFiles:e.allFiles.concat(c),extendedLibFiles:c})}return{allFiles:[...c,...r,...n,...a],pageFiles:a,componentFiles:n,otherFiles:r,extendedLibFiles:c}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";const o=e("tslib"),r=e("../../../utils/tools"),n=o.__importDefault(e("../utils/appconfig/appconfig")),a=e("../utils/appconfig/checkcustomcomponent"),c=o.__importDefault(e("../utils/appconfig/wxappcodejson")),d=e("../utils/taskmanager");async function i(e,t,o,n,a=!0){let d={};try{d=await(0,c.default)(e,t,decodeURI(o))}catch(e){d={}}let i=`\n var decodePathName = decodeURI("${(0,r.escapeQuot)(o,'"')}")\n __wxAppCode__[decodePathName + ".json"] = ${JSON.stringify(d)}\n __wxAppCode__[decodePathName + ".wxml"] = ${n}("./" + decodePathName + ".wxml")\n `;return a&&(i+="\n __wxRoute = decodePathName\n __wxRouteBegin = true\n __wxAppCurrentFile__ = decodePathName + \".js\"\n try {\n require(__wxAppCurrentFile__)\n } catch (error) {\n // 插件项目不能hack define和require,走这里,异常只能精准到页面,内部的多层依赖的报错无法精准\n !error.from && console.error('页面【' + decodePathName + ']错误:\\n',error)\n throw error\n }"),i}module.exports={getWxAppCode:async function(e,t,o=!0){const c=await n.default.getAppConfig(e,t),p=await(0,a.getFileListJustInPack)(e,t,c),u=[],_=new d;for(const r of p)_.addTask(i,e,t,r,"$gwx",o);return u.push(...await _.runAllAsync()),(0,r.escapeScript)(u.join("\n"))},getWxAppCodeOfPage:i,getWxAppCodeJsonOfPage:async function(e,t,o){let n={};try{n=await(0,c.default)(e,t,decodeURI(o))}catch(e){n={}}return`\n var decodePathName = decodeURI("${(0,r.escapeQuot)(o,'"')}")\n __wxAppCode__[decodePathName + ".json"] = ${JSON.stringify(n)}\n `},getWxAppCodeWxmlOfPage:function(e,t,o,n=!0){let a=`\n var decodePathName = decodeURI("${(0,r.escapeQuot)(t,'"')}")\n __wxAppCode__[decodePathName + ".wxml"] = ${o}("./" + decodePathName + ".wxml")\n `;return n&&(a+="\n __wxRoute = decodePathName\n __wxRouteBegin = true\n __wxAppCurrentFile__ = decodePathName + \".js\"\n try {\n require(__wxAppCurrentFile__)\n } catch (error) {\n // 插件项目不能hack define和require,走这里,异常只能精准到页面,内部的多层依赖的报错无法精准\n !error.from && console.error('页面【' + decodePathName + ']错误:\\n',error)\n throw error\n }"),a}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(_,R){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.appErrCode=void 0,exports.appErrCode={APP_JSON_READ_ERR:10001,APP_JSON_PARSE_ERR:10002,APP_JSON_PAGES_ERR:10003,APP_JSON_ENTRANCE_NOT_FOUND_ERR:1004,APP_JSON_CONTENT_ERR:10005,PAGES_JSON_PARSE_ERR:10006,APP_JSON_WXML_NOT_FOUND:10007,APP_JSON_JS_NOT_FOUND:10008,JSON_CONTENT_ERR:10009,EXT_JSON_PARSE_ERR:10011,EXT_JSON_PAGES_ERR:10012,EXT_JSON_CONTENT_ERR:10013,APPSERVICE_LOSE_WXML:10021,APPSERVICE_LOSE_JS:10022,FILE_NOT_UTF8:10031,BABEL_TRANS_JS_ERR:10032,UGLIFY_JS_ERR:10033,BABILI_JS_ERR:10034,JS_ES6_ERR:10035,FILE_FLAT_ERR:10036,POST_WXSS_ERR:10037,TRANS_WXML_JS_ERR:10040,TRANS_WXSS_JS_ERR:10041,SUMMER_PLUGIN_ERR:10045,SUMMER_PLUGIN_CODE_ERR:10046,VENDOR_MD5_NOT_MATCH:10050,VENDOR_WCC_FILE_NOT_FOUND:10051,VENDOR_WCSC_FILE_NOT_FOUND:10052,CODE_SIZE_EXCEED:10060,GET_GEO_LOCATION_ERR:10070,QCLOUD_SVR_NO_FOUND_ERR:10080,QCLOUD_SVR_POLL_TIMEOUT:10081,QCLOUD_SVR_POLL_DOING:10082,QCLOUD_SVR_UP_DIR_CHECK:10083,PLUGIN_JSON_READ_ERR:10091,PLUGIN_JSON_PARSE_ERR:10092,PLUGIN_JSON_CONTENT_ERR:10093,PLUGIN_PAGE_JSON_PARSE_ERR:10094,PLUGIN_JSON_FILE_NOT_FOUND:10095,PLUGIN_PAGE_JSON_CONTENT_ERR:10096,PLUGIN_TRANS_WXML_JS_ERR:10097,PLUGIN_TRANS_WXSS_JS_ERR:10101,PLUGIN_JS_ES6_ERR:10098,PLUGIN_ONLINE_CODE_UNPACK_ERR:10099,PAGE_JSON_PARSE_ERR:10020,SITE_MAP_JSON_CONTENT_ERROR:10100}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";const i=e("minimatch");function r(e,t,i=!1){return i?e.startsWith(t)?e.slice(1):e:e.startsWith(t)?e:t+e}function n(e,t){const n=e.slice(e.lastIndexOf("/")+1);let s=!1;if(!t)return!1;const l=t.value.toLowerCase();if("prefix"===t.type)s=n.startsWith(l);else if("suffix"===t.type)s=n.endsWith(l);else if("folder"===t.type)s=r(e,"/").startsWith(function(e,t,i=!1){return i?e.endsWith(t)?e.slice(0,e.length-1):e:e.endsWith(t)?e:e+t}(r(l,"/"),"/"));else if("file"===t.type)s=r(e,"/")===r(l,"/");else if("glob"===t.type)try{s=i(e,l)||i(r(e,"/"),l)}catch(e){console.error(`project.config.json packOptions rule ${l} invalid; ${e}`),s=!1}else if("regexp"===t.type)try{s=new RegExp(l,"igm").test(e)||new RegExp(l,"igm").test(r(e,"/"))}catch(e){console.error(`project.config.json packOptions rule ${l} invalid; ${e}`),s=!1}return s}const s=function(e){let t=null,i=null,r=Object.create(null);return function(e,s,l=null){if(s.length<1)return!1;if(t===s&&i===l){if(void 0!==r[e])return r[e]}else t=s,i=l,r=Object.create(null);const o=e.replace(/\\/g,"/").toLowerCase();if(!o)return!1;let c=!1;for(const e of s)if(c=n(o,e),c)break;if(l){let e=!1;for(const t of l)if(e=n(o,t),e){c=!1;break}}return r[e]=c,c}};module.exports={isFileIgnored:s(),isFileIncluded:s()}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,t){try{return{success:!0,content:await r(e,t)}}catch(s){return{success:!1,errMsg:await(0,n.handleError)(e,t,s),content:new Map}}};const s=e("tslib").__importDefault(e("path")),n=e("./utils/handleerror/handleerror");async function r(e,t){let n=[];const r=await t.getMPFileInfo(),i=await t.getCompAndPagesOfConf();return n=Object.keys(r).filter((e=>{const t=s.default.extname(e);return!(".json"===t&&(i.pages[e.slice(0,e.length-t.length)]||i.comps[e.slice(0,e.length-t.length)])||["app.json","project.config.json","project.private.config.json","sitemap.json","ext.json"].includes(e)||e.endsWith(".wxml")||e.endsWith(".wxss")||e.endsWith(".js")||e.endsWith(".ts")||e.endsWith(".scss")||e.endsWith(".sass")||e.endsWith(".scss"))})),n}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,n){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,n){try{return{success:!0,content:await o(e,n)}}catch(t){return{success:!1,errMsg:await(0,a.handleError)(e,n,t),content:new Map}}};const t=e("tslib").__importDefault(e("./utils/appconfig/appconfig")),a=e("./utils/handleerror/handleerror"),r=e("./utils/tools"),s="$gwx";async function o(e,n){const a=new Map,o=await n.getAllWxmlAndWxsFiles(),i=await t.default.getAppConfig(e,n,!0);return o.wxmlFiles.forEach((e=>{const n=e.slice(0,e.length-5),t=function(e,n){let t=s;return n&&(t=`$${Buffer.from(n.root).toString("hex")}`),`\n <style> </style> <page></page>\n <script>\n var __setCssStartTime__ = Date.now();\n __wxAppCode__['${e}.wxss']();\n var __setCssEndTime__ = Date.now();\n (function() {\n var gf = ${t}( './${e}.wxml' ); \n\n if (window.__wxAppCodeReadyCallback__) {\n window.__wxAppCodeReadyCallback__(gf);\n } else {\n document.dispatchEvent(new CustomEvent( "generateFuncReady", {\n detail: {\n generateFunc: gf\n }\n }));\n }\n })();\n <\/script>`}(n,(0,r.checkIsInSubPackage)(i,n));a.set(`${n}.html`,t)})),a}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FullCompiler=void 0,exports.checkProjectOKForWeb=w;const r=e("tslib"),o=r.__importDefault(e("path")),p=r.__importDefault(e("fs-extra")),i=e("../../utils/tools"),s=e("../../utils/miniappJson"),l=r.__importDefault(e("./appservice/getappservice")),a=r.__importDefault(e("./pageframe")),n=r.__importDefault(e("./utils/appconfig/appconfig")),u=r.__importDefault(e("./utils/filewriter")),c=r.__importDefault(e("./getallwmltohtmlmap")),d=r.__importDefault(e("./getallrawfiles")),m=r.__importDefault(e("./appservice/getsubpackage")),g=r.__importDefault(e("./pageframe/getsubpackage")),f=e("./app/app"),h=e("../../utils/env");async function j(e,t,r){let o={};try{o=r?await n.default.checkDarkmodeAppConfig(e,t):await n.default.checkLightAppConfig(e,t),o=n.default.DealSubPackages(o)}catch(e){return{success:!1,content:"{}"}}return{success:!0,content:JSON.stringify(o)}}function w(e){return["workers","functionalPages","lazyCodeLoading","serviceProviderTicket","supportedMaterials","embeddedAppIdList","halfPage"].forEach((e=>{})),["useExtendedLib","plugins"].forEach((e=>{})),!0}exports.FullCompiler=class{constructor(e,t){this.project=e,this.summerCompiler=t.summerCompiler,this.outputDir=t.outputDir}async compileFull(e={}){var t,r,p,s;let n=(null==e?void 0:e.outputDir)||this.outputDir;w(this.project)||(null===(t=(0,i.getTerm)())||void 0===t||t.error.red("\nProject is not available for web\n"),process.exit());const m=null===(r=(0,i.getTerm)())||void 0===r?void 0:r.progressBar({width:80,title:"compile miniprogram:",inline:!0,titleSize:40,percent:!0,syncMode:!0});n||(n=o.default.join(this.project.projectPath,this.project.miniprogramRoot,`../${o.default.basename(this.project.projectPath)}_web`));const g=new u.default({projectPath:o.default.join(this.project.projectPath,this.project.miniprogramRoot),dist:n}),f=g.dist;null==m||m.update({progress:.1,title:"app-service"});const h=await(0,l.default)(this.project,this.summerCompiler);if(!h.success)return null==m||m.update({progress:1,title:"done: compiled app-service error"}),null==m||m.stop(),f;g.writeFile("app/app-service.js",h.content),null==m||m.update({progress:.5,title:"app-service"}),null==m||m.update({progress:.6,title:"page-frame"});const v=await(0,a.default)(this.project,this.summerCompiler,{multi:!1});if(!v.success)return null==m||m.update({progress:1,title:"done: compiled page-frame error"}),null==m||m.stop(),f;g.writeFile("app/page-frame.html",v.content),null==m||m.update({progress:.6,title:"page-frame"}),null==m||m.update({progress:.7,title:"app/app-config.json"});const b=await j(this.project,this.summerCompiler,!1);if(!b.success)return null==m||m.update({progress:1,title:"done: compile app/app-config.json error"}),null==m||m.stop(),f;g.writeFile("app/app-config.json",b.content),null==m||m.update({progress:.75,title:"app/app-config.json"}),null==m||m.update({progress:.8,title:"app/app-config-darkmode.json"});const k=await j(this.project,this.summerCompiler,!0);if(!k.success)return null==m||m.update({progress:1,title:"done: compile app/app-config-darkmode.json error"}),null==m||m.stop(),f;g.writeFile("app/app-config-darkmode.json",k.content),null==m||m.update({progress:.85,title:"app/app-config-darkmode.json"}),null==m||m.update({progress:.9,title:"pages's html"});const C=await(0,c.default)(this.project,this.summerCompiler);if(!C.success)return null==m||m.update({progress:1,title:"done: compile getAllWXMLToHTMLMap error"}),null==m||m.stop(),f;C.content.forEach(((e,t)=>{g.writeFile(o.default.join("app",t),e)})),null==m||m.update({progress:.95,title:"copy raw files"});const F=await(0,d.default)(this.project,this.summerCompiler);return F.success?(F.content.forEach((e=>{g.copyFile(e,"app")})),null==m||m.update({progress:1,title:"done"}),null===(p=(0,i.getTerm)())||void 0===p||p("\n\n"),null===(s=(0,i.getTerm)())||void 0===s||s.column(1),e.genWxapkg,f):(null==m||m.update({progress:1,title:"done: compile getAllRawFilesMap error"}),null==m||m.stop(),f)}async compileMulti(e={}){var t,r,p,s;let f=(null==e?void 0:e.outputDir)||this.outputDir;w(this.project)||(null===(t=(0,i.getTerm)())||void 0===t||t.error.red("\nProject is not available for web\n"),process.exit()),f||(f=o.default.join(this.project.projectPath,this.project.miniprogramRoot,`../${o.default.basename(this.project.projectPath)}_web`));const h=null===(r=(0,i.getTerm)())||void 0===r?void 0:r.progressBar({width:80,title:"compile miniprogram:",percent:!0,titleSize:50,inline:!0,syncMode:!0}),v=new u.default({projectPath:o.default.join(this.project.projectPath,this.project.miniprogramRoot),dist:f}),b=v.dist;null==h||h.update({progress:.1,title:"app-service"});const k=await(0,l.default)(this.project,this.summerCompiler);if(!k.success)return null==h||h.update({progress:1,title:"done: compiled app-service error"}),null==h||h.stop(),b;v.writeFile("app/app-service.js",k.content),null==h||h.update({progress:.3,title:"app-service"}),null==h||h.update({progress:.3,title:"page-frame"});const C=await(0,a.default)(this.project,this.summerCompiler,{multi:!0});if(!C.success)return null==h||h.update({progress:1,title:"done: compiled page-frame error"}),null==h||h.stop(),b;v.writeFile("app/app-wxss.js",C.content),v.writeFile("app/page-frame.js","var __pageFrameJsStartTime__ = Date.now();"),null==h||h.update({progress:.5,title:"page-frame"}),null==h||h.update({progress:.5,title:"app/app-config.json"});const F=await j(this.project,this.summerCompiler,!1);if(!F.success)return null==h||h.update({progress:1,title:"done: compile app/app-config.json error"}),null==h||h.stop(),b;v.writeFile("app/app-config.json",F.content),null==h||h.update({progress:.6,title:"app/app-config.json"}),null==h||h.update({progress:.6,title:"app/app-config-darkmode.json"});const P=await j(this.project,this.summerCompiler,!0);if(!P.success)return null==h||h.update({progress:1,title:"done: compile app/app-config-darkmode.json error"}),null==h||h.stop(),b;v.writeFile("app/app-config-darkmode.json",P.content),null==h||h.update({progress:.7,title:"app/app-config-darkmode.json"}),null==h||h.update({progress:.7,title:"subpackages's pages"});const _=await n.default.getAppConfig(this.project,this.summerCompiler,!0);if(_.subpackages||_.subPackages){const e=_.subpackages||_.subPackages;for(const t of e){null==h||h.update({progress:.8,title:`${t.root} subpackages app-service.js html`});const e=await(0,m.default)(this.project,this.summerCompiler,t),r=t.root;if(!e.success)return null==h||h.update({progress:1,title:`error! compile subpackages ${t.root}'s app-service.js html.`}),null==h||h.stop(),b;{const t=o.default.join("app",r,"app-service.js");v.writeFile(t,e.content)}null==h||h.update({progress:.8,title:`subpackages: ${t.root}'s page-frame.js html`});const p=await(0,g.default)(this.project,this.summerCompiler,{subpkgConfig:t});if(!p.success)return null==h||h.update({progress:1,title:`error! compile subpackages ${t.root}'s page-frame.js html.`}),null==h||h.stop(),b;{const e=o.default.join("app",r,"page-frame.js");v.writeFile(e,p.content)}}}null==h||h.update({progress:.9,title:"pages's html"});const D=await(0,c.default)(this.project,this.summerCompiler);if(!D.success)return null==h||h.update({progress:1,title:"done: compile getAllWXMLToHTMLMap error"}),null==h||h.stop(),b;D.content.forEach(((e,t)=>{v.writeFile(o.default.join("app",t),e)})),null==h||h.update({progress:.9,title:"copy raw files"});const y=await(0,d.default)(this.project,this.summerCompiler);return y.success?(y.content.forEach((e=>{v.copyFile(e,"app")})),null==h||h.update({progress:1,title:"done"}),null===(p=(0,i.getTerm)())||void 0===p||p.column(1),null===(s=(0,i.getTerm)())||void 0===s||s("\n\n"),e.genWxapkg,b):(null==h||h.update({progress:1,title:"done: compile getAllRawFilesMap error"}),null==h||h.stop(),b)}async genSubPkgAppInfo(e,t,r,i,l,a,n,u,c,d){var m;const g=null==c?void 0:c.remoteDebugWsEndpoint,j=(0,s.getMiniappJson)(this.project.projectPath,this.project.targetPlatform),w=j.icon,v=j.name,b=await this.summerCompiler.getAppJSON(),k=(null===(m=null==b?void 0:b.window)||void 0===m?void 0:m.pageOrientation)||"portrait",C=await(0,f.generateSubPkgAppInfoJson)({miniModuleId:e,nickName:v,brandIconURL:w,pageOrientation:k,buildVersion:i,subpkgs:t,contact:l,cpfWxaAttrSyncResponse:a,miniappPkgType:n,miniappConnectType:d||f.IMiniappConnectType.LAN});u&&"string"==typeof u&&(C.devtoolsLocalServerUrl=u),C.devtoolsPlatform=h.isWin?"Windows":"Mac",g&&"string"==typeof g&&(C.remoteDebugWsEndpoint=g),(null==c?void 0:c.androidRemoteConfigForUSB)&&(C.appClientPortForotReloadServer=c.androidRemoteConfigForUSB.appClientPortForotReloadServer,C.appClientPortForRemoteDebugServer=c.androidRemoteConfigForUSB.appClientPortForRemoteDebugServer),p.default.ensureDirSync(o.default.dirname(r)),p.default.writeJSONSync(r,C)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,_){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,_,n){try{return{success:!0,content:await s(e,_,n)}}catch(n){return{success:!1,content:await(0,a.handleError)(e,_,n)}}};const a=e("../utils/handleerror/handleerror"),n=e("../trans/transwxmltojs"),t=e("../trans/transwxsstojs"),r=e("../utils"),o=e("./getwxappcode");async function s(e,_,a){const s=[];s.push("\n var __subPageFrameStartTime__ = __subPageFrameStartTime__ || Date.now();\n var __webviewId__ = __webviewId__;\n var __wxAppCode__= __wxAppCode__ || {};\n var __WXML_GLOBAL__= __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0};\n var __vd_version_info__=__vd_version_info__||{};\n var __subPageFrameEndTime__ = Date.now();\n ");const i=await(0,n.transWXMLToJS)(e,_,{app:!1,page:a.subpkgConfig.root});s.push(i.code);const p=await(0,t.transWXSSToJS)(e,_,{app:!1,page:a.subpkgConfig.root});s.push((0,r.escapeByEval)(p.comm));const u=await(0,o.getPageFrameWxAppCode)(e,_,{app:!1,noJson:!0,page:a.subpkgConfig.root});return s.push(`;(window.eval || __global.__hackEval)(\`${u}\`)`),s.push(";var __subPageFrameEndTime__ = Date.now()"),s.join("\n\n")}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWxAppCodeWxmlOfPage=i,exports.getWxAppCodeWxssOfPage=u,exports.getWxAppCodeJsonOfPage=d,exports.getPageFrameWxAppCode=async function(e,t,o={}){const{app:p,page:c}=o;let f,l="$gwx";const g=await n.default.getAppConfig(e,t);if(!p){if(f=(0,s.checkIsInSubPackage)(g,c),!f)return"";l=`$${Buffer.from(f.root).toString("hex")}`}const x=await(0,a.getFileListJustInPack)(e,t,g,f),_=new r.default;for(let n=0,s=x.length;n<s;n++)o.noJson||_.addTask(d,e,t,x[n]),_.addTask(i,e,t,x[n],l),o.noWXSS||_.addTask(u,e,t,x[n]);const w=[],m=await _.runAllAsync();for(const e of m)w.push(...e);return w.join("\n")};const o=e("tslib"),n=o.__importDefault(e("../utils/appconfig/appconfig")),s=e("../../../utils/tools"),a=e("../utils/appconfig/checkcustomcomponent"),p=o.__importDefault(e("../utils/appconfig/wxappcodejson")),c=e("../trans/transwxsstojs"),r=o.__importDefault(e("../utils/taskmanager"));async function i(e,t,o,n){const s=[],a=encodeURI(o);return s.push(`__wxAppCode__[decodeURI("${a}") + ".wxml"]=${n}("./" + decodeURI("${a}") + ".wxml")`),s}async function u(e,t,o){const n=[],s=await(0,c.transWXSSToJS)(e,t,{page:o});if(s.page){const e=encodeURI(o);n.push(`__wxAppCode__[decodeURI("${e}") + ".wxss"]=${s.page}`)}return n}async function d(e,t,o){const n=[],s=encodeURI(o),a=await(0,p.default)(e,t,o);return n.push(`__wxAppCode__[decodeURI("${s}") + ".json"]=${JSON.stringify(a)}`),n}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(t,e,n){try{return{success:!0,content:await s(t,e,n)}}catch(n){return{success:!1,content:await(0,a.handleError)(t,e,n)}}};const a=t("../utils/handleerror/handleerror"),n=t("../trans/transwxmltojs"),_=t("../trans/transwxsstojs"),i=t("../utils"),r=t("./getwxappcode");async function s(t,e,a){const s=[];!0!==a.multi&&s.push('\n <!DOCTYPE html>\n\t\t <html lang="zh-CN">\n\t\t\t <head>\n\t\t\t <meta charset="UTF-8" />\n\t\t\t\t\t <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />\n\t\t\t\t\t <meta http-equiv="Content-Security-Policy" content="script-src \'self\' \'unsafe-inline\' \'unsafe-eval\'">\n\t\t\t\t\t <link rel="icon" href="data:image/ico;base64,aWNv">\n\t\t \t<script>'),s.push("var __mainPageFrameReady__ = window.__mainPageFrameReady__ || function(){}; var __pageFrameStartTime__ = __pageFrameStartTime__ || Date.now(); var __webviewId__ = __webviewId__;\n var __wxAppCode__ = __wxAppCode__ || {}; var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0}; var __vd_version_info__=__vd_version_info__||{}; \n ");const o=await(0,n.transWXMLToJS)(t,e,{app:!0});s.push(o.code);const c=await(0,_.transWXSSToJS)(t,e,{app:!0});s.push((0,i.escapeByEval)(c.comm));const p=await(0,r.getPageFrameWxAppCode)(t,e,{app:!0,noJson:!0});return s.push(`;(window.eval || __global.__hackEval)(\`${p}\`)`),s.push(";__mainPageFrameReady__() ;var __pageFrameEndTime__ = Date.now();"),!0!==a.multi&&s.push("<\/script> </head> <body> <div></div> </body> </html>"),s.join("\n\n")}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transWXMLToJS=async function(t,e,o){n.default.updateState(t);const p=await i.default.getAppConfig(t,e),{app:u,page:f}=o;let g;if(!u&&(g=(0,c.checkIsInSubPackage)(p,f),!g))return{code:"",name:"$gwx"};const m=await async function(t,e,o){try{return await async function(t,e,o){const{appConfig:i,config:c}=o,r=await e.getPackageWxmlAndWxsFiles((null==c?void 0:c.root)||"__APP__"),s=n.default.filter(r.wxmlFiles),{wxsFiles:p}=r;let u,f=s.concat(p),g=!1;(null==p?void 0:p.length)>0&&(g=!0),f=f.map((t=>`./${t}`)),r&&(u=r.content);const m=c?`$${Buffer.from(c.root).toString("hex")}`:"$gwx",w=">_<"+Date.now()%1e4,x=(await(0,a.getWxmlCompileConfig)(t,e,i,c)).join(w);return await(0,l.compileWxml)({files:f,isCut:!1,configSplit:w,configContent:x,hasWxs:g,genfuncName:m,cwd:t.srcPath||t.projectPath,replaceContent:u})}(t,e,o)}catch(t){throw function(t){const e=new Error(r);return e.code=s,e.msgForConsole=t.message,e}(t)}}(t,e,{appConfig:p,config:g}),{name:w,code:x}=m;return{name:w,code:x}};const o=t("tslib"),n=o.__importDefault(t("../../../utils/packOptionsHelper")),i=o.__importDefault(t("../utils/appconfig/appconfig")),a=t("../utils/appconfig/checkcustomcomponent"),c=t("../utils/tools"),l=t("./wxml/compilewxml");const r="编译 .wxml 文件错误,错误信息如上,可在控制台查看更详细信息",s=10040}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(o,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWxssFilesAndContent=async function(o,t,e){const{config:s}=e,n=await t.getPackageWxssFiles((null==s?void 0:s.root)||"__APP__");return{wxssFiles:n.wxssFiles,content:n.content}},exports.transWXSSToJS=async function(o,t,e={}){n.default.updateState(o);const{app:s,page:a}=e,l=await i.default.getAppConfig(o,t);if(s){const e=await u(o,t,{appConfig:l})||{};return{comm:(null==e?void 0:e.comm)||""}}const r=`./${a}.wxss`,p=(0,c.checkIsInSubPackage)(l,a);if(!p){const e=await u(o,t,{appConfig:l});return{comm:null==e?void 0:e.comm,page:(null==e?void 0:e[r])||""}}const f=await u(o,t,{appConfig:l,config:p});return{comm:(null==f?void 0:f.comm)||"",page:(null==f?void 0:f[r])||""}};const e=o("tslib"),s=e.__importDefault(o("path")),n=e.__importDefault(o("../../../utils/packOptionsHelper")),a=e.__importDefault(o("../../../utils/locales/locales")),i=e.__importDefault(o("../utils/appconfig/appconfig")),c=o("../../../utils/tools"),l=o("../config/apperrcode.config"),r=o("../utils/appconfig/checkcustomcomponent"),p=o("./wxss/compilewxss");async function u(o,t,e){try{return await async function(o,t,e){const{appConfig:n,config:a,lazyload:i}=e,c=await t.getPackageWxssFiles((null==a?void 0:a.root)||"__APP__"),l=c.wxssFiles,u={};l.forEach((o=>{u[o]=!0}));const f=(null==a?void 0:a.pages.map((o=>s.default.posix.join(a.root,o))))||n.pages,g=[];let d,m=0;f.forEach((o=>{u[`${o}.wxss`]&&(m++,g.push(`./${o}.wxss`),delete u[`${o}.wxss`])})),(await(0,r.getWxssCompileConfig)(o,t,n,a)).forEach((o=>{u[`${o}.wxss`]&&(m++,g.push(`./${o}.wxss`),delete u[`${o}.wxss`])}));for(const o in u)"app.wxss"===o&&0===m&&(m=1),g.push(`./${o}`);return c&&(d=c.content),await(0,p.compileWxss)({pageCount:m,files:g,cwd:o.srcPath||o.projectPath,subPackage:null==a?void 0:a.root,lazyload:i,replaceContent:d})}(o,t,e)}catch(o){if("CustomError"===(null==o?void 0:o.type))throw o;throw function(o){const t=new Error(a.default.config.COMPILE_WXSS_ERROR_CONSOLE);return t.code=l.appErrCode.TRANS_WXSS_JS_ERR,t.msgForConsole=o.message,t}(o)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxml=async function(e){return async function(e){return{code:"",name:""}}()}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxss=async function(e){return async function(e){return Date.now(),{}}()}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,a){"use strict";const t=e("tslib"),s=e("../theme"),n=t.__importStar(e("../tools")),i=t.__importDefault(e("./pagejson")),o=t.__importDefault(e("./appjson")),r=e("path"),l=e("lodash");async function c(e,a,n){const l=await(0,o.default)(e,a),c=function(e,a){return{pages:e.pages||[],resizable:!!e.resizable,subPackages:e.subPackages,debug:!!e.debug,widgets:e.widgets||[],customClose:!!e.customClose,workers:e.workers||"",cloud:!!e.cloud,global:{window:Object.assign(Object.assign({},(0,s.getDefaultWindowConfig)(e.darkmode&&a)),e.window)},page:{},networkTimeout:Object.assign({request:6e4,uploadFile:6e4,connectSocket:6e4,downloadFile:6e4},e.networkTimeout),ext:e.ext||{},extAppid:e.extAppid||"",plugins:e.plugins||{},mainPlugins:Object.assign({},e.plugins),preloadRule:e.preloadRule,permission:e.permission,requiredBackgroundModes:e.requiredBackgroundModes,functionalPages:e.functionalPages,style:e.style,useExtendedLib:e.useExtendedLib||{},supportedMaterials:e.supportedMaterials||[],usingShopPlugin:e.usingShopPlugin||void 0,embeddedAppIdList:e.embeddedAppIdList,halfPage:e.halfPage,resolveAlias:e.resolveAlias,renderer:e.renderer,enablePassiveEvent:e.enablePassiveEvent,debugOptions:e.debugOptions,__warning__:e.__warning__||""}}(l,n),g=e=>{e.__warning__&&(c.__warning__&&(c.__warning__+="、"),c.__warning__+=`${e.__warning__}`)},{pages:u}=c;c.entryPagePath=l.entryPagePath?`${l.entryPagePath}.html`:`${u[0]}.html`;for(const s of u){const n=await(0,i.default)(e,a,`${s}`)||{};g(n);const{singlePage:o}=n,r=t.__rest(n,["singlePage"]);c.page[`${s}.html`]={window:r||{},singlePage:o,renderer:n.renderer}}if(c.subPackages){let s={};for(const n of c.subPackages){for(const s of n.pages){const o=r.posix.join(n.root,s),l=await(0,i.default)(e,a,`${o}`)||{};g(l);const{singlePage:u}=l,p=t.__rest(l,["singlePage"]);c.page[`${o}.html`]={window:p||{},singlePage:u,renderer:l.renderer}}s=Object.assign(Object.assign({},s),n.plugins)}c.plugins=Object.assign(Object.assign({},c.plugins),s)}c.page=Object.assign({},c.page);const p=Object.assign({},l.tabBar),d=[].concat(p.list||[]),h=[];for(const e of d){const a=Object.assign({},e);a.pagePath+=".html",h.push(a)}p.list=h,c.tabBar=p,l.darkmode&&(c.supportDarkmode=!0);let b={};const{themeLocation:f}=l;return void 0!==f&&""!==f.trim().replace(/^\.\//,"")&&(b=await a.checkThemeJSON({themeLocation:f})),await async function(e){var a;const{project:t,isDarkMode:n,themeLocation:i,themeJSON:o,appConfig:l}=e,c=r.join(t.projectPath,t.miniprogramRoot||""),{windowConfigRules:g,tabbarRules:u,tabbarListItemRules:p}=(0,s.checkThemeRules)(c);(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:"app.json or ext.json",windowConfig:l.global.window,rules:g,keyPrefix:'["window"]',isPlugin:!1});for(const e in l.page){const a=e.replace(/\.html$/,"");(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:`${a}.json`,windowConfig:l.page[e].window||{},rules:g,keyPrefix:"",isPlugin:!1})}if(l.tabBar){(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:"app.json or ext.json",windowConfig:l.tabBar||{},rules:u,keyPrefix:'["tabBar"]',isPlugin:!1});for(let e=0;e<(null===(a=l.tabBar)||void 0===a?void 0:a.list.length);e++)(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:"app.json or ext.json",windowConfig:l.tabBar.list[e],rules:p,keyPrefix:`["tabBar"]["list"][${e}]`,isPlugin:!1})}}({project:e,summerCompiler:a,themeJSON:b,themeLocation:f,isDarkMode:!(!l.darkmode||!n),appConfig:c}),c}let g=null;async function u(e,a,t=!0){let s;return g?s=g:(s=await c(e,a,!1),g=s),t?l.cloneDeep(s):s}let p=null;const d=async(e,a,t=!0)=>{const s=await u(e,a,t);return t?l.cloneDeep(s):s};module.exports={checkLightAppConfig:u,checkDarkmodeAppConfig:async function(e,a,t=!0){let s;return p?s=p:(s=await c(e,a,!0),p=s),t?l.cloneDeep(s):s},getAppConfig:d,checkIsInSubPackage:async(e,a,t)=>{const s=await d(e,a,!1);return n.checkIsInSubPackage(s,t)},DealSubPackages:e=>{if(Array.isArray(e.subPackages||e.subpackages)&&Array.isArray(e.pages)){const a=l.cloneDeep(e);return(a.subPackages||a.subpackages).forEach((e=>{const t=[];e.pages.forEach((s=>{const n=r.join(e.root,s);t.push(n),a.pages.includes(n)||a.pages.push(n)})),e.pages=t})),a}return e}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,r){try{const e=await r.getAppJSON();return t.cloneDeep(e)}catch(e){throw console.log("getCompiledAppJSON error:",e),e}};const t=e("lodash")}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(o,n){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWxmlCompileConfig=async function(o,n,t,s){let e=[],i=0;const c=await f(o,n,t);for(const o in c){const n=c[o];if(!n)continue;if(!s&&n.config||s&&!n.config||s&&n.config&&s.root!==n.config.root)continue;const{pageJSON:t}=n;if(t&&(t.usingComponents||t.componentGenerics)){e.push(`./${o}.wxml`);const n=Object.assign(Object.assign({},t.usingComponents),t.componentGenerics);i++,e.push(Object.keys(n).length),e=e.concat(Object.keys(n))}}return e.unshift(i),e},exports.getWxssCompileConfig=async function(o,n,t,s){return await a(o,n,t,s)},exports.getFileListJustInPack=a,exports.getCustomComponentsConfig=f;const t=o("tslib"),s=o("../../../../utils/tools"),e=t.__importDefault(o("./pagejson")),i=o("path"),c=(o,n)=>i.posix.normalize(i.join(o,n).replace(/^\/+/,"")).replace(/\\/g,"/"),r=(o,n)=>o.endsWith(n)?o:o+n;async function a(o,n,t,s){const e=await f(o,n,t),i=[];for(const o in e){const n=e[o];s?n.config&&n.config.root===s.root&&i.push(o):n.config||i.push(o)}return[...i]}async function f(o,n,t){const i=await async function(o,n){return(await n.getAllPageAndComponent()).map((o=>`${o}.json`))}(0,n);if(t.pages){const o=new Set(i);for(const n of t.pages)o.has(`${n}.json`)||i.push(`${n}.json`)}const r=t.subPackages||t.subpackages;if(Array.isArray(r))for(const o of r)if(o&&"string"==typeof o.root&&Array.isArray(o.pages))for(const n of o.pages){const t=new Set(i),s=c(o.root,String(n));t.has(`${s}.json`)||i.push(`${s}.json`)}const a={};for(const c of i){const i=c.replace(/\.json$/,"");if("app"===(0,s.normalizePath)(i))continue;const r=await(0,e.default)(o,n,i);if(r.usingComponents||r.componentGenerics||!0===r.component){const o=p(i,t);a[i]={config:o,file:c,pageJSON:r}}}return a}const p=(o,n)=>{let t;const s=n.subPackages||n.subpackages;if(Array.isArray(s))for(const n of s)if(n&&"string"==typeof n.root&&o.startsWith(r(n.root,"/"))){t=n;break}return t}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,t,i){const o=await t.getPageJSON(i);return r.default.cloneDeep(o)};const r=e("tslib").__importDefault(e("lodash"))}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(n,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(n,e,o){const l=await u.getAppConfig(n,e,!1),p=(0,i.checkIsInSubPackage)(l,o),r=await(0,t.default)(n,e,o);if(r.usingComponents&&Object.keys(r.usingComponents).length>0){const n={};for(const e in r.usingComponents){const o=r.usingComponents[e]||"";l.plugins||(null==p?void 0:p.plugins)?n[e]=o.replace(/^plugin:\/\/([^/]*)\/(.*)/,((n,e,o,i,t)=>{var s,u;const r=(null===(s=l.plugins)||void 0===s?void 0:s[e])||(null===(u=null==p?void 0:p.plugins)||void 0===u?void 0:u[e]);return r?`plugin://${r.provider}/${o}`:t})):n[e]=o}r.usingComponents=n}return s.cloneDeep(r)};const o=n("tslib"),i=n("../../../../utils/tools"),t=o.__importDefault(n("./pagejson")),s=n("lodash"),u=n("./appconfig")}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const i=t("tslib"),r=i.__importDefault(t("path")),s=i.__importDefault(t("fs-extra"));exports.default=class{constructor(t){if(this.projectPath="",this.dist="",this.projectPath=t.projectPath||"",this.dist=t.dist,s.default.ensureDirSync(this.dist),!0===t.clearDist&&s.default.emptyDirSync(this.dist),!s.default.existsSync(this.projectPath))throw new Error("目标地址不存在")}getFinalPath(t){return r.default.join(this.dist,t)}writeFile(t,e){const i=this.getFinalPath(t);s.default.ensureDirSync(r.default.dirname(i)),s.default.writeFileSync(i,e)}copyFile(t,e=""){const i=r.default.join(this.projectPath,t),a=this.getFinalPath(r.default.join(e,t));s.default.ensureDirSync(r.default.dirname(a)),s.default.copyFileSync(i,a)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(R,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errorPrefix=void 0,exports.errorPrefix={COMPONENT_FOR_DEVELOPER:"For developer:",WXML_RUNTIME_ERROR:"WXMLRT",WXML_RUNTIME_ERROR_REG:/^WXMLRT_[^:]*:/,WXML_PLUGIN_RUNTIME_ERROR_REG:/^WXMLRT_\$gwx_(wx[0-9a-zA-Z]{16}):/,WXS_RUNTIME_ERROR:"WXSRT:",WEBVIEW_ERROR:"WEBVIEW_ERROR",CODE_ERROR:"CODE_ERROR"}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleError=async function(e,r,t,a=!0){let l;if(t.code===s.appErrCode.TRANS_WXML_JS_ERR?l=await o.parseWxmlErr(e,r,t.msgForConsole):t.code===s.appErrCode.TRANS_WXSS_JS_ERR&&(l=await o.parseWxssErr(e,r,t)),l){const e=n.replace("{{error}}",(l.title?`${l.title}`:"")+(l.file?`in File: ${l.file}`:"")+(l.msg?`<pre style="white-space:pre-wrap; font-family: monospace;">${l.msg.replace(/</g,"&lt;").replace(/>/g,"&gt;")}</pre>`:"")+(t.message?`<p>${t.message}</p>`:""));if(a){const r=unescape(decodeURI(encodeURIComponent(e)));return i(l),r}}else if(a){const e=unescape(decodeURI(t.message));return i(t),e}return t.msg};const s=e("../../config/apperrcode.config"),t=e("../../../../utils/tools"),o=e("./parseerr"),n="\n <p>{{error}}</p>\n";function i(e){var r;const s=`\n\n${e.title?`title: ${e.title}\n`:""}${e.file?`file: ${e.file}\n`:""}${e.msg?`msg: ${e.msg} \n`:""}${e.message?e.message:""}`;null===(r=(0,t.getTerm)())||void 0===r||r.error.red(s)}}(require("licia/lazyImport")(require),require);