@pronto-tools-and-more/components-renderer 12.29.0 → 12.30.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -15,13 +15,14 @@ const getRealPathPrefix = (isBuild, pathPrefix) => {
|
|
15
15
|
return pathPrefix;
|
16
16
|
};
|
17
17
|
|
18
|
-
export const renderViews = async (
|
19
|
-
|
18
|
+
export const renderViews = async ({
|
19
|
+
componentsPath,
|
20
20
|
tsconfigPath,
|
21
21
|
pathPrefix,
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
supportsNormalHtml,
|
23
|
+
isBuild,
|
24
|
+
}) => {
|
25
|
+
Assert.string(componentsPath);
|
25
26
|
Assert.string(tsconfigPath);
|
26
27
|
|
27
28
|
const assetDir = isBuild ? "resource://dynamic/storefront/assets" : "";
|
@@ -30,7 +31,7 @@ export const renderViews = async (
|
|
30
31
|
const realPathPrefix = getRealPathPrefix(isBuild, pathPrefix);
|
31
32
|
SetPathPrefix.setPathPrefix(realPathPrefix);
|
32
33
|
|
33
|
-
const module = await LoadRoutes.loadRoutes(
|
34
|
+
const module = await LoadRoutes.loadRoutes(componentsPath);
|
34
35
|
const values = Object.values(module);
|
35
36
|
// TODO return views string instead of json for faster performance?
|
36
37
|
const views = CreateViews.createViews(values);
|