@xuda.io/xuda-worker-bundle-min 1.3.75 → 1.3.76

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 (2) hide show
  1. package/index.js +9 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -770,17 +770,15 @@ func.common.get_module = async function (SESSION_ID, module) {
770
770
  return ret;
771
771
  }
772
772
  if (_session.worker_type === "Debug") {
773
- // if (typeof IS_PROCESS_SERVER !== "undefined") {
774
- // ret = await import(`${_conf.xuda_home}runtime/js/modules/` + module);
775
- // } else
776
773
  if (
777
774
  typeof IS_DOCKER !== "undefined" ||
778
775
  typeof IS_PROCESS_SERVER !== "undefined"
779
776
  ) {
780
- // ret = await import(`${_conf.xuda_home}modules/` + module);
781
777
  ret = await import(
782
778
  func.utils.get_resource_filename(
783
- SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
779
+ SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
780
+ ? ""
781
+ : SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
784
782
  `${_conf.xuda_home}modules/` + module
785
783
  )
786
784
  );
@@ -790,7 +788,9 @@ func.common.get_module = async function (SESSION_ID, module) {
790
788
  SESSION_ID,
791
789
  "dist",
792
790
  func.utils.get_resource_filename(
793
- SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
791
+ SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
792
+ ? ""
793
+ : SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
794
794
  "runtime/js/modules/" + module
795
795
  )
796
796
  )
@@ -817,7 +817,9 @@ func.common.get_module = async function (SESSION_ID, module) {
817
817
  SESSION_ID,
818
818
  "dist",
819
819
  func.utils.get_resource_filename(
820
- SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
820
+ SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
821
+ ? ""
822
+ : SESSION_OBJ[SESSION_ID]?.opt?.app_build_id,
821
823
  "runtime/js/modules/" + rep()
822
824
  )
823
825
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.75",
3
+ "version": "1.3.76",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {