@symbo.ls/create 2.10.233 → 2.10.234
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/index.js +1 -1
- package/package.json +2 -2
- package/router.js +2 -1
package/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export const create = async (App, options = DEFAULT_CREATE_OPTIONS, optionsExter
|
|
|
40
40
|
const pages = options.pages || {}
|
|
41
41
|
const components = options.components ? { ...uikit, ...options.components } : uikit
|
|
42
42
|
const designSystem = scratchSystem || {}
|
|
43
|
-
const snippets = { ...utils, ...(options.snippets || {}) }
|
|
43
|
+
const snippets = { ...utils, ...utils.scratchUtils, ...(options.snippets || {}) }
|
|
44
44
|
const define = options.define || defaultDefine
|
|
45
45
|
|
|
46
46
|
const extend = applySyncDebug([App], options)
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.234",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "d2964a9fc98b4ef4b9bd5d7c2a2701fb6b99a6a3",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|
package/router.js
CHANGED
|
@@ -16,7 +16,8 @@ export const initRouter = (root, options) => {
|
|
|
16
16
|
if (routerOptions === false) return
|
|
17
17
|
if (routerOptions === true) routerOptions = DEFAULT_ROUTING_OPTIONS
|
|
18
18
|
|
|
19
|
-
const router = options.snippets &&
|
|
19
|
+
const router = options.snippets && options.snippets.router || defaultRouter
|
|
20
|
+
console.log(options.snippets)
|
|
20
21
|
|
|
21
22
|
const onRender = (el, s) => {
|
|
22
23
|
if (el.routes) router(el, window.location.pathname, {})
|