@shijiu/jsview 1.9.839 → 1.9.841
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.
- package/loader/jsview-main.js +9 -2
- package/package.json +1 -1
package/loader/jsview-main.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import JsViewLoader from './jsview-loader'
|
|
2
1
|
import AppData from '/src/appConfig/app.config'
|
|
3
2
|
import JsViewVendorConfig from "/src/appConfig/jsview.config"
|
|
4
3
|
|
|
5
|
-
function main() {
|
|
4
|
+
async function main() {
|
|
5
|
+
let JsViewLoader = null;
|
|
6
|
+
// 根据JsViewConfig, 判断厂商是否设置了使用远程loader启动
|
|
7
|
+
const remoteLoader = JsViewVendorConfig.jsviewConfig.remoteLoader;
|
|
8
|
+
if (remoteLoader) {
|
|
9
|
+
JsViewLoader = (await import(remoteLoader)).default;
|
|
10
|
+
} else {
|
|
11
|
+
JsViewLoader = (await import('./jsview-loader.js')).default;
|
|
12
|
+
}
|
|
6
13
|
const jsviewLoader = new JsViewLoader();
|
|
7
14
|
|
|
8
15
|
// 使用vendor配置值覆盖默认配置。
|