@hitachivantara/app-shell-vite-plugin 2.0.0-next.6 → 2.0.0-next.7
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/dist/config-utils.d.ts
CHANGED
|
@@ -24,6 +24,4 @@ export declare function getFinalModuleName(module: string): string;
|
|
|
24
24
|
* @param modules The list of modules to be exported by the application bundle.
|
|
25
25
|
*/
|
|
26
26
|
export declare function getAppModules(root: string, modules?: string[]): Record<string, string>;
|
|
27
|
-
export declare function startsWithSelf(value: string): boolean;
|
|
28
|
-
export declare function replaceSelf(value: string, replaceWith?: string): string;
|
|
29
27
|
export declare function getBasePath(configBaseUrl?: string, viteConfigBase?: string): string;
|
package/dist/config-utils.js
CHANGED
|
@@ -70,12 +70,6 @@ export function getAppModules(root, modules = []) {
|
|
|
70
70
|
return acc;
|
|
71
71
|
}, {});
|
|
72
72
|
}
|
|
73
|
-
export function startsWithSelf(value) {
|
|
74
|
-
return value.startsWith("@self/");
|
|
75
|
-
}
|
|
76
|
-
export function replaceSelf(value, replaceWith = "") {
|
|
77
|
-
return value.replace(/^@self\//, replaceWith);
|
|
78
|
-
}
|
|
79
73
|
export function getBasePath(configBaseUrl, viteConfigBase) {
|
|
80
74
|
return viteConfigBase ?? configBaseUrl ?? "/";
|
|
81
75
|
}
|
|
@@ -37,6 +37,7 @@ export default function serveAppShellConfig(appShellConfig, root, selfAppName, a
|
|
|
37
37
|
server.watcher.on("add", restartServer2);
|
|
38
38
|
}
|
|
39
39
|
server.middlewares.use(`${server.config.base}app-shell.config.json`, (req, res) => {
|
|
40
|
+
res.setHeader("Content-Type", "application/json");
|
|
40
41
|
res.end(JSON.stringify(prepareConfigForDevMode(appShellConfig, selfAppName)));
|
|
41
42
|
});
|
|
42
43
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/app-shell-vite-plugin",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@emotion/cache": "^11.11.0",
|
|
22
22
|
"@emotion/react": "^11.11.1",
|
|
23
23
|
"@hitachivantara/app-shell-services": "^2.0.0-next.3",
|
|
24
|
-
"@hitachivantara/app-shell-shared": "^2.0.0-next.
|
|
25
|
-
"@hitachivantara/app-shell-ui": "^2.0.0-next.
|
|
24
|
+
"@hitachivantara/app-shell-shared": "^2.0.0-next.7",
|
|
25
|
+
"@hitachivantara/app-shell-ui": "^2.0.0-next.7",
|
|
26
26
|
"@hitachivantara/uikit-react-icons": "^6.0.0-next.5",
|
|
27
27
|
"@hitachivantara/uikit-react-shared": "^6.0.0-next.6",
|
|
28
28
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
},
|
|
60
60
|
"./package.json": "./package.json"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "24e6e06e007de4c6262eab9c62a279bdf62627e0"
|
|
63
63
|
}
|