@moneko/solid 1.5.0-beta.1 → 1.5.0-beta.3
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/lib/entry.js +1 -1
- package/package.json +1 -1
package/lib/entry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createComponent as o}from"solid-js/web";import{Router as r}from"@solidjs/router";import{createRoot as
|
|
1
|
+
import{createComponent as o}from"solid-js/web";import{Router as r,HashRouter as t}from"@solidjs/router";import{createRoot as e,getOwner as i}from"solid-js";import{render as m}from"solid-js/web";import p from"@app/info";import n from"@app/routes";import s from"@app/info";let a="hash"===s.routerMode?t:r;export default function(r={}){let{container:t,basename:s=p.base,fallback:f,language:u,...d}=r,l=t?.querySelector("#root")||document.getElementById("root");return"micro"===p.type&&(window.mainApp={...d,container:l}),e(()=>m(function(){return o(a,{base:s,children:n})},l),i())}
|