@xuda.io/xuda-worker-bundle-min 1.3.103 → 1.3.105
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/index.js +14 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -754,8 +754,20 @@ func.common.get_module = async function (SESSION_ID, module) {
|
|
|
754
754
|
typeof IS_DOCKER !== "undefined" ||
|
|
755
755
|
typeof IS_PROCESS_SERVER !== "undefined"
|
|
756
756
|
) {
|
|
757
|
+
// ret = await import(
|
|
758
|
+
// `${_conf.xuda_home}root/dist/runtime/js/modules/` + rep()
|
|
759
|
+
// );
|
|
757
760
|
ret = await import(
|
|
758
|
-
|
|
761
|
+
func.common.get_url(
|
|
762
|
+
SESSION_ID,
|
|
763
|
+
"dist",
|
|
764
|
+
func.utils.get_resource_filename(
|
|
765
|
+
SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
|
|
766
|
+
? ""
|
|
767
|
+
: SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
|
|
768
|
+
`${_conf.xuda_home}root/dist/runtime/js/modules/` + rep()
|
|
769
|
+
)
|
|
770
|
+
)
|
|
759
771
|
);
|
|
760
772
|
} else {
|
|
761
773
|
ret = await import(
|
|
@@ -4297,7 +4309,7 @@ func.utils.DOCS_OBJ.get = async function (SESSION_ID, idP) {
|
|
|
4297
4309
|
if (typeof _session.SLIM_BUNDLE === "undefined" || !_session.SLIM_BUNDLE) {
|
|
4298
4310
|
const module = await func.common.get_module(
|
|
4299
4311
|
SESSION_ID,
|
|
4300
|
-
`xuda-progs-loader-module
|
|
4312
|
+
`xuda-progs-loader-module.mjs`
|
|
4301
4313
|
);
|
|
4302
4314
|
|
|
4303
4315
|
if (idP !== "system") {
|