@hyext/builder-revues 1.2.2-alpha.3 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -710,7 +710,7 @@ function genEntrys(props) {
710
710
  });
711
711
  }
712
712
 
713
- const libVersion = "1.0.3-alpha.1" ;
713
+ const libVersion = "1.0.3" ;
714
714
  const libCdn = '//a.msstatic.com/huya/hd/h5/static-source/revue/lib';
715
715
 
716
716
  function getLibVersion(builderConfig) {
@@ -996,6 +996,7 @@ function injectRuntimeLib(releasePath) {
996
996
  const releaseFrameworkPath = path__default["default"].join(releasePath, 'framework');
997
997
  fs__default["default"].copySync(frameworkPath, releaseFrameworkPath);
998
998
  injectNpm(path__default["default"].join(releaseFrameworkPath, 'script'), '@revues/web-sdk-core');
999
+ injectNpm(path__default["default"].join(releaseFrameworkPath, 'script'), '@revues/web-frame');
999
1000
  // TODO: 这段代码是测试 @revues/js-sdk 增加构建变量去决定执行
1000
1001
  // injectNpm(sdkPath, '@revues/js-sdk')
1001
1002
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/builder-revues",
3
- "version": "1.2.2-alpha.3",
3
+ "version": "1.2.2",
4
4
  "description": "> TODO: description",
5
5
  "author": "loler",
6
6
  "homepage": "",
@@ -24,9 +24,10 @@
24
24
  "url": "https://git.huya.com/exc/web/revue.git"
25
25
  },
26
26
  "dependencies": {
27
- "@revues/cocos-web-adapter": "1.2.2-alpha.3",
28
- "@revues/code-compiler": "1.2.2-alpha.3",
29
- "@revues/web-sdk-core": "1.2.2-alpha.3",
27
+ "@revues/cocos-web-adapter": "1.2.2",
28
+ "@revues/code-compiler": "1.2.2",
29
+ "@revues/web-frame": "1.2.2",
30
+ "@revues/web-sdk-core": "1.2.2",
30
31
  "archiver": "^7.0.1",
31
32
  "axios": "^1.7.3",
32
33
  "chalk": "^2.4.2",
@@ -46,5 +47,5 @@
46
47
  "@types/ramda": "^0.29.11",
47
48
  "terser": "^5.31.0"
48
49
  },
49
- "gitHead": "dc7187d30e5540f712d53ee237333b1377c6dc82"
50
+ "gitHead": "002e556eab25f41c289c2e3db316f3c95dce2360"
50
51
  }
@@ -1,13 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- {{#if isProd}}
5
- <link rel="preload" href="{{sourcePathPrefix}}/framework/script/service.js" as="script">
6
- <link rel="preload" href="{{sourcePathPrefix}}/framework/script/view.js" as="script">
7
- <link rel="preload" href="{{sourcePathPrefix}}/framework/css/index.css" as="style">
8
- <link rel="preload" href="./__APP__.js" as="script">
9
- <link rel="preload" href="./pageframe.js" as="script">
10
- {{/if}}
11
4
  <meta charset="UTF-8" />
12
5
  <meta id="viewport" name="viewport"
13
6
  content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
@@ -23,6 +16,8 @@
23
16
  <meta name="ext-busi-type" content="ext">
24
17
  <meta name="ext-build-env" content="{{buildEnv}}">
25
18
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
19
+ <link rel="stylesheet" href="{{sourcePathPrefix}}/framework/script/web-frame.css"></link>
20
+ <script charset="utf-8" src="{{sourcePathPrefix}}/framework/script/web-frame.js"></script>
26
21
  <style>
27
22
  html,
28
23
  body {
@@ -72,13 +67,22 @@
72
67
  }
73
68
  </style>
74
69
  <script charset="utf-8">
75
- window.__extInfo = {{ toJSON extInfo }}
76
- window.__packageExtConfig = {{ packageExtConfig }}
70
+ window.__extInfo = {"hideNavigationBarTools":true,"extUuid":"ptxbnce4","extName":"miniprogram-demo2","projectType":"miniProgram","envVersion":"develop","version":"","extType":"app_panel_h5"}
71
+ window.__packageExtConfig = {"isLazyLoading":false,"entryPagePath":"pages/component/index/index"}
72
+ var __loadedLinkCount = 0
73
+ var __finishLinkCount = 5
74
+ window.__preloadSuccess = false
75
+ window.__handleLinkLoad = function (e) {
76
+ __loadedLinkCount++
77
+ if (__loadedLinkCount === __finishLinkCount) {
78
+ window.__preloadSuccess = true
79
+ if (typeof window.__handlePreloadLinkAllLoaded === 'function') {
80
+ window.__handlePreloadLinkAllLoaded()
81
+ window.__handlePreloadLinkAllLoaded = null
82
+ }
83
+ }
84
+ }
77
85
  </script>
78
- {{!-- {{#if isProd}}
79
- <script src="https://fedlib.msstatic.com/fedbasic/hyext-inner/hyext-performance/performance.global.js"></script>
80
- <script src="https://a.msstatic.com/huya/hd/cdn_libs/performance_report-min.js"></script>
81
- {{/if}} --}}
82
86
  {{#if debug}}
83
87
  <script charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/vConsole/3.15.1/vconsole.min.js"></script>
84
88
  <script>
@@ -86,6 +90,10 @@
86
90
  window.__debug = true
87
91
  </script>
88
92
  {{/if}}
93
+ {{#if isProd}}
94
+ <script src="https://fedlib.msstatic.com/fedbasic/hyext-inner/hyext-performance/performance.global.js"></script>
95
+ <script src="https://a.msstatic.com/huya/hd/cdn_libs/performance_report-min.js"></script>
96
+ {{/if}}
89
97
  <script charset="utf-8" src="{{hyextSDKUrl}}"></script>
90
98
  <script charset="utf-8" src="{{sourcePathPrefix}}/framework/script/web-sdk-core.js"></script>
91
99
  </head>
@@ -95,8 +103,13 @@
95
103
  <iframe class="service" id="webview-service"></iframe>
96
104
  <iframe class="webview" frameborder="0" id="webview-first-view"></iframe>
97
105
  </div>
106
+ <link rel="preload" href="{{sourcePathPrefix}}/framework/script/service.js" as="script" onload="__handleLinkLoad()">
107
+ <link rel="preload" href="{{sourcePathPrefix}}/framework/script/view.js" as="script" onload="__handleLinkLoad()">
108
+ <link rel="preload" href="{{sourcePathPrefix}}/framework/css/index.css" as="style" onload="__handleLinkLoad()">
109
+ <link rel="preload" href="./__APP__.js" as="script" onload="__handleLinkLoad()">
110
+ <link rel="preload" href="./pageframe.js" as="script" onload="__handleLinkLoad()">
98
111
  {{#if sentryScript}}
99
- <script charset="utf-8" src="{{sentryScript}}" async></script>
112
+ <script charset="utf-8" src="{{sentryScript}}" defer></script>
100
113
  {{/if}}
101
114
  </body>
102
115