@pronto-tools-and-more/components-renderer 6.33.0 → 6.34.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components-renderer",
3
- "version": "6.33.0",
3
+ "version": "6.34.0",
4
4
  "description": "",
5
5
  "main": "src/componentsRendererMain.js",
6
6
  "type": "module",
@@ -3,8 +3,8 @@ import * as CreateViews from "../CreateViews/CreateViews.js";
3
3
  import * as LoadRoutes from "../LoadRoutes/LoadRoutes.js";
4
4
  import * as LoadSwc from "../LoadSwc/LoadSwc.js";
5
5
  import * as RenderView from "../RenderView/RenderView.js";
6
- import * as SwcNodePath from "../SwcNodePath/SwcNodePath.js";
7
6
  import * as SetAssetDir from "../SetAssetDir/SetAssetDir.js";
7
+ import * as SwcNodePath from "../SwcNodePath/SwcNodePath.js";
8
8
 
9
9
  export const renderViews = async (
10
10
  componentsPathMain,
@@ -17,7 +17,7 @@ export const renderViews = async (
17
17
 
18
18
  await LoadSwc.loadSwc(SwcNodePath.swcNodePath, tsconfigPath);
19
19
 
20
- const assetDir = isBuild ? "" : "resource://dynamic";
20
+ const assetDir = isBuild ? "resource://dynamic/storefront/assets" : "";
21
21
  SetAssetDir.setAssetDir(assetDir);
22
22
 
23
23
  const module = await LoadRoutes.loadRoutes(componentsPathMain);
@@ -4,5 +4,5 @@ export const setAssetDir = (path) => {
4
4
  Assert.string(path);
5
5
  // TODO use import meta env once supported
6
6
  // @ts-ignore
7
- process.env.ASSET_DIR = `resource://dynamic`;
7
+ process.env.ASSET_DIR = path;
8
8
  };