@symbo.ls/create 2.11.294 → 2.11.298
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/cjs/bundle/index.js +22740 -19652
- package/dist/cjs/prepare.js +2 -1
- package/package.json +2 -2
- package/src/prepare.js +2 -1
package/dist/cjs/prepare.js
CHANGED
|
@@ -80,7 +80,7 @@ const prepareState = (options, App) => {
|
|
|
80
80
|
return (0, import_utils.deepCloneWithExtnd)(state);
|
|
81
81
|
};
|
|
82
82
|
const preparePages = (options) => {
|
|
83
|
-
const pages =
|
|
83
|
+
const pages = options.pages;
|
|
84
84
|
Object.keys(options.pages).filter((v) => !v.startsWith("/")).forEach((v) => {
|
|
85
85
|
if (v === "main")
|
|
86
86
|
pages["/"] = options.pages.main;
|
|
@@ -88,6 +88,7 @@ const preparePages = (options) => {
|
|
|
88
88
|
pages["/" + v] = options.pages[v];
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
+
options.pages = pages;
|
|
91
92
|
return pages;
|
|
92
93
|
};
|
|
93
94
|
const prepareDocument = (options) => {
|
package/package.json
CHANGED
package/src/prepare.js
CHANGED
|
@@ -48,7 +48,7 @@ export const prepareState = (options, App) => {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export const preparePages = options => {
|
|
51
|
-
const pages =
|
|
51
|
+
const pages = options.pages
|
|
52
52
|
Object.keys(options.pages)
|
|
53
53
|
.filter(v => !v.startsWith('/'))
|
|
54
54
|
.forEach(v => {
|
|
@@ -57,6 +57,7 @@ export const preparePages = options => {
|
|
|
57
57
|
pages['/' + v] = options.pages[v]
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
|
+
options.pages = pages
|
|
60
61
|
return pages
|
|
61
62
|
}
|
|
62
63
|
|