@vulkano/core 1.30.1 → 1.31.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 +1 -1
- package/views/helpers/vite.js +6 -1
package/package.json
CHANGED
package/views/helpers/vite.js
CHANGED
|
@@ -37,7 +37,12 @@ module.exports = (props) => {
|
|
|
37
37
|
version
|
|
38
38
|
} = app.pkg || {};
|
|
39
39
|
|
|
40
|
-
const validEntry = Object.keys(inputs).find( (k) =>
|
|
40
|
+
const validEntry = Object.keys(inputs).find( (k) => {
|
|
41
|
+
const val = inputs[k];
|
|
42
|
+
// dev manifest: keys are short names ("app"/"admin") -> exact key match
|
|
43
|
+
// prod manifest: keys are full paths, each entry carries exact "name" and "isEntry" boolean -> match by name and isEntry
|
|
44
|
+
return k === entry || (val && val.name === entry && val.isEntry);
|
|
45
|
+
});
|
|
41
46
|
|
|
42
47
|
if (!validEntry) {
|
|
43
48
|
return `<!-- Invalid Entry ${entry} -->`;
|