site-config-stack 2.2.2 → 2.2.4
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/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -67,9 +67,9 @@ function createSiteConfigStack(options) {
|
|
|
67
67
|
for (const o in stack.sort((a, b) => (a._priority || 0) - (b._priority || 0))) {
|
|
68
68
|
for (const k in stack[o]) {
|
|
69
69
|
const key = k;
|
|
70
|
-
const val = stack[o][k];
|
|
71
|
-
if (!k.startsWith("_")) {
|
|
72
|
-
siteConfig[k] =
|
|
70
|
+
const val = options2?.resolveRefs ? vue.toValue(stack[o][k]) : stack[o][k];
|
|
71
|
+
if (!k.startsWith("_") && typeof val !== "undefined") {
|
|
72
|
+
siteConfig[k] = val;
|
|
73
73
|
if (options2?.debug)
|
|
74
74
|
siteConfig._context[key] = stack[o]._context?.[key] || stack[o]._context || "anonymous";
|
|
75
75
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -65,9 +65,9 @@ function createSiteConfigStack(options) {
|
|
|
65
65
|
for (const o in stack.sort((a, b) => (a._priority || 0) - (b._priority || 0))) {
|
|
66
66
|
for (const k in stack[o]) {
|
|
67
67
|
const key = k;
|
|
68
|
-
const val = stack[o][k];
|
|
69
|
-
if (!k.startsWith("_")) {
|
|
70
|
-
siteConfig[k] =
|
|
68
|
+
const val = options2?.resolveRefs ? toValue(stack[o][k]) : stack[o][k];
|
|
69
|
+
if (!k.startsWith("_") && typeof val !== "undefined") {
|
|
70
|
+
siteConfig[k] = val;
|
|
71
71
|
if (options2?.debug)
|
|
72
72
|
siteConfig._context[key] = stack[o]._context?.[key] || stack[o]._context || "anonymous";
|
|
73
73
|
}
|