@pronto-tools-and-more/components-renderer 5.7.1 → 5.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components-renderer",
3
- "version": "5.7.1",
3
+ "version": "5.8.0",
4
4
  "description": "",
5
5
  "main": "src/componentsRendererMain.js",
6
6
  "type": "module",
@@ -5,10 +5,19 @@ import * as LoadSwc from "../LoadSwc/LoadSwc.js";
5
5
  import * as RenderView from "../RenderView/RenderView.js";
6
6
  import * as SwcNodePath from "../SwcNodePath/SwcNodePath.js";
7
7
 
8
- export const renderViews = async (componentsPathMain, tsconfigPath) => {
8
+ export const renderViews = async (
9
+ componentsPathMain,
10
+ tsconfigPath,
11
+ pathPrefix
12
+ ) => {
9
13
  Assert.string(componentsPathMain);
10
14
  Assert.string(tsconfigPath);
15
+
11
16
  await LoadSwc.loadSwc(SwcNodePath.swcNodePath, tsconfigPath);
17
+
18
+ // TODO use import meta env once supported
19
+ // @ts-ignore
20
+ process.env.ASSET_DIR = pathPrefix;
12
21
  const module = await LoadRoutes.loadRoutes(componentsPathMain);
13
22
  const values = Object.values(module);
14
23
  // TODO return views string instead of json for faster performance?