build: bundle dependencies and ship pre-built dist

This commit is contained in:
saberzero1 2026-04-27 21:38:27 +02:00
parent 96d5c407bd
commit f013389f71
No known key found for this signature in database
4 changed files with 44 additions and 6 deletions

View file

@ -1,4 +1,23 @@
import { jsx } from 'preact/jsx-runtime';
// node_modules/preact/dist/preact.mjs
var l;
l = { __e: function(n2, l2, u3, t2) {
for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
} catch (l3) {
n2 = l3;
}
throw n2;
} }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
var f2 = 0;
function u2(e2, t2, n2, o2, i2, u3) {
t2 || (t2 = {});
var a2, c2, p2 = t2;
if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f2, __i: -1, __u: 0, __source: i2, __self: u3 };
return l.vnode && l.vnode(l2), l2;
}
// src/components/Spacer.tsx
var spacerCss = `.spacer {
@ -6,7 +25,7 @@ var spacerCss = `.spacer {
}`;
var Spacer = () => {
const Component = (_props) => {
return /* @__PURE__ */ jsx("div", { class: "spacer" });
return /* @__PURE__ */ u2("div", { class: "spacer" });
};
Component.css = spacerCss;
return Component;

File diff suppressed because one or more lines are too long

23
dist/index.js vendored
View file

@ -1,4 +1,23 @@
import { jsx } from 'preact/jsx-runtime';
// node_modules/preact/dist/preact.mjs
var l;
l = { __e: function(n2, l2, u3, t2) {
for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
} catch (l3) {
n2 = l3;
}
throw n2;
} }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
var f2 = 0;
function u2(e2, t2, n2, o2, i2, u3) {
t2 || (t2 = {});
var a2, c2, p2 = t2;
if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f2, __i: -1, __u: 0, __source: i2, __self: u3 };
return l.vnode && l.vnode(l2), l2;
}
// src/components/Spacer.tsx
var spacerCss = `.spacer {
@ -6,7 +25,7 @@ var spacerCss = `.spacer {
}`;
var Spacer = () => {
const Component = (_props) => {
return /* @__PURE__ */ jsx("div", { class: "spacer" });
return /* @__PURE__ */ u2("div", { class: "spacer" });
};
Component.css = spacerCss;
return Component;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long