@pronto-tools-and-more/components-renderer 5.7.1 → 5.9.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -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 (
|
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?
|