@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.
@@ -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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.294",
3
+ "version": "2.11.298",
4
4
  "license": "MIT",
5
- "gitHead": "20ecf9eb8605d65112863b11eefc61a69b6608c5",
5
+ "gitHead": "a2546011785f7dc55c4abf0e5a1b8cd0218e9deb",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
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