Tree shaking ESM autoimport IIFE
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s

This commit is contained in:
2026-04-26 15:38:26 +02:00
parent a792e72b63
commit af5bd1a537
2 changed files with 12 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "sigpro", "name": "sigpro",
"version": "1.2.19", "version": "1.2.20",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
"main": "./dist/sigpro.esm.min.js", "main": "./dist/sigpro.esm.min.js",

View File

@@ -577,14 +577,17 @@ const mount = (comp, target) => {
return inst return inst
} }
const SigPro = Object.freeze({ $, $$, watch, h, when, each, fx, router, req, mount, batch }) const sigproFn = Object.freeze({ $, $$, watch, h, when, each, fx, router, req, mount, batch })
if (typeof window !== "undefined") { const sigpro = () => {
Object.assign(window, SigPro) if (typeof window !== "undefined") {
"a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video" Object.assign(window, sigproFn)
.split(" ").forEach(tag => { "a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video"
window[tag] = (props, children) => h(tag, props, children) .split(" ").forEach(tag => { window[tag] = (props, children) => h(tag, props, children) })
}) console.log("SigPro DX installed.")
}
} }
export { $, $$, watch, h, when, each, fx, router, req, mount, batch } if (typeof import.meta === 'undefined' && typeof window !== 'undefined') sigpro()
export { sigpro, $, $$, watch, h, when, each, fx, router, req, mount, batch }