From b2b868d62f03a5281a567e5e31da5a514c13c837 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Tue, 14 May 2024 17:17:10 -0400 Subject: [PATCH] change to add preact --- app.tsx | 9 ++++++++- bundled/preact/compat.js | 4 ++++ bundled/preact/jsx-runtime.js | 7 +++++++ bundled/test.tsx | 7 +++++-- bundled/{ => twind}/core.d.ts | 0 bundled/{ => twind}/core.js | 0 bundled/{ => twind}/presets.d.ts | 0 bundled/{ => twind}/presets.js | 0 deno.jsonc | 3 +-- hmr-react.tsx | 6 +++--- run-local.tsx | 1 + run-serve.tsx | 2 +- 12 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 bundled/preact/compat.js create mode 100644 bundled/preact/jsx-runtime.js rename bundled/{ => twind}/core.d.ts (100%) rename bundled/{ => twind}/core.js (100%) rename bundled/{ => twind}/presets.d.ts (100%) rename bundled/{ => twind}/presets.js (100%) diff --git a/app.tsx b/app.tsx index 66d619b..4735f75 100644 --- a/app.tsx +++ b/app.tsx @@ -1,5 +1,12 @@ import * as ISO from ">able/iso-elements.tsx"; +import React from "react"; + +const Custom =()=>{ + const [countGet, countSet] = React.useState(5) + return

countSet(countGet+1)}>CUSTOM {countGet}

; +} export default ()=>
-

App

+

App

+
; \ No newline at end of file diff --git a/bundled/preact/compat.js b/bundled/preact/compat.js new file mode 100644 index 0000000..ae87159 --- /dev/null +++ b/bundled/preact/compat.js @@ -0,0 +1,4 @@ +/// +/* esm.sh - esbuild bundle(preact@10.20.2/compat) es2022 production */ +var V,f,Se,st,R,Ce,xe,ee,oe,te,_e,Ne,L={},Pe=[],ct=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,q=Array.isArray;function P(e,t){for(var _ in t)e[_]=t[_];return e}function we(e){var t=e.parentNode;t&&t.removeChild(e)}function S(e,t,_){var n,r,o,i={};for(o in t)o=="key"?n=t[o]:o=="ref"?r=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?V.call(arguments,2):_),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return A(e,i,n,r,null)}function A(e,t,_,n,r){var o={type:e,props:t,key:_,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Se,__i:-1,__u:0};return r==null&&f.vnode!=null&&f.vnode(o),o}function ue(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function U(e,t){if(t==null)return e.__?U(e.__,e.__i+1):null;for(var _;tt&&R.sort(ee));j.__r=0}function Re(e,t,_,n,r,o,i,a,s,l,p){var u,d,c,y,E,g=n&&n.__k||Pe,v=t.length;for(_.__d=s,ft(_,t,g),s=_.__d,u=0;u0?A(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,a=pt(r,_,i,p),r.__i=a,o=null,a!==-1&&(p--,(o=_[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&u--,typeof r.type!="function"&&(r.__u|=65536)):a!==i&&(a===i+1?u++:a>i?p>s-i?u+=a-i:u--:a(s!=null&&!(131072&s.__u)?1:0))for(;i>=0||a=0){if((s=t[i])&&!(131072&s.__u)&&r==s.key&&o===s.type)return i;i--}if(a2&&(a.children=arguments.length>3?V.call(arguments,2):_),A(e.type,a,n||e.key,r||e.ref,null)}function se(e,t){var _={__c:t="__cC"+Ne++,__:e,Consumer:function(n,r){return n.children(r)},Provider:function(n){var r,o;return this.getChildContext||(r=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&r.some(function(a){a.__e=!0,ne(a)})},this.sub=function(i){r.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r.splice(r.indexOf(i),1),a&&a.call(i)}}),n.children}};return _.Provider.__=_.Consumer.contextType=_}V=Pe.slice,f={__e:function(e,t,_,n){for(var r,o,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=null&&(r.setState(o.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,n||{}),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e}},Se=0,st=function(e){return e!=null&&e.constructor==null},k.prototype.setState=function(e,t){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},_),this.props)),e&&P(_,e),e!=null&&this.__v&&(t&&this._sb.push(t),ne(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ne(this))},k.prototype.render=x,R=[],xe=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ee=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,oe=0,te=Ee(!1),_e=Ee(!0),Ne=0;var w,h,ce,Oe,O=0,$e=[],G=[],m=f,Fe=m.__b,Ae=m.__r,Le=m.diffed,Ve=m.__c,Me=m.unmount,Ie=m.__;function D(e,t){m.__h&&m.__h(h,e,O||t),O=0;var _=h.__H||(h.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({__V:G}),_.__[e]}function Z(e){return O=1,pe(Ze,e)}function pe(e,t,_){var n=D(w++,2);if(n.t=e,!n.__c&&(n.__=[_?_(t):Ze(void 0,t),function(a){var s=n.__N?n.__N[0]:n.__[0],l=n.t(s,a);s!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=h,!h.u)){var r=function(a,s,l){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(d){return!!d.__c});if(p.every(function(d){return!d.__N}))return!o||o.call(this,a,s,l);var u=!1;return p.forEach(function(d){if(d.__N){var c=d.__[0];d.__=d.__N,d.__N=void 0,c!==d.__[0]&&(u=!0)}}),!(!u&&n.__c.props===a)&&(!o||o.call(this,a,s,l))};h.u=!0;var o=h.shouldComponentUpdate,i=h.componentWillUpdate;h.componentWillUpdate=function(a,s,l){if(this.__e){var p=o;o=void 0,r(a,s,l),o=p}i&&i.call(this,a,s,l)},h.shouldComponentUpdate=r}return n.__N||n.__}function de(e,t){var _=D(w++,3);!m.__s&&he(_.__H,t)&&(_.__=e,_.i=t,h.__H.__h.push(_))}function M(e,t){var _=D(w++,4);!m.__s&&he(_.__H,t)&&(_.__=e,_.i=t,h.__h.push(_))}function Be(e){return O=5,J(function(){return{current:e}},[])}function ze(e,t,_){O=6,M(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},_==null?_:_.concat(e))}function J(e,t){var _=D(w++,7);return he(_.__H,t)?(_.__V=e(),_.i=t,_.__h=e,_.__V):_.__}function je(e,t){return O=8,J(function(){return e},t)}function qe(e){var t=h.context[e.__c],_=D(w++,9);return _.c=e,t?(_.__==null&&(_.__=!0,t.sub(h)),t.props.value):e.__}function Ge(e,t){m.useDebugValue&&m.useDebugValue(t?t(e):e)}function t_(e){var t=D(w++,10),_=Z();return t.__=e,h.componentDidCatch||(h.componentDidCatch=function(n,r){t.__&&t.__(n,r),_[1](n)}),[_[0],function(){_[1](void 0)}]}function Ye(){var e=D(w++,11);if(!e.__){for(var t=h.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var _=t.__m||(t.__m=[0,0]);e.__="P"+_[0]+"-"+_[1]++}return e.__}function vt(){for(var e;e=$e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Y),e.__H.__h.forEach(fe),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){h=null,Fe&&Fe(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ie&&Ie(e,t)},m.__r=function(e){Ae&&Ae(e),w=0;var t=(h=e.__c).__H;t&&(ce===h?(t.__h=[],h.__h=[],t.__.forEach(function(_){_.__N&&(_.__=_.__N),_.__V=G,_.__N=_.i=void 0})):(t.__h.forEach(Y),t.__h.forEach(fe),t.__h=[],w=0)),ce=h},m.diffed=function(e){Le&&Le(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($e.push(t)!==1&&Oe===m.requestAnimationFrame||((Oe=m.requestAnimationFrame)||mt)(vt)),t.__H.__.forEach(function(_){_.i&&(_.__H=_.i),_.__V!==G&&(_.__=_.__V),_.i=void 0,_.__V=G})),ce=h=null},m.__c=function(e,t){t.some(function(_){try{_.__h.forEach(Y),_.__h=_.__h.filter(function(n){return!n.__||fe(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],m.__e(n,_.__v)}}),Ve&&Ve(e,t)},m.unmount=function(e){Me&&Me(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(n){try{Y(n)}catch(r){t=r}}),_.__H=void 0,t&&m.__e(t,_.__v))};var We=typeof requestAnimationFrame=="function";function mt(e){var t,_=function(){clearTimeout(n),We&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(_,100);We&&(t=requestAnimationFrame(_))}function Y(e){var t=h,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),h=t}function fe(e){var t=h;e.__c=e.__(),h=t}function he(e,t){return!e||e.length!==t.length||t.some(function(_,n){return _!==e[n]})}function Ze(e,t){return typeof t=="function"?t(e):t}function rt(e,t){for(var _ in t)e[_]=t[_];return e}function me(e,t){for(var _ in e)if(_!=="__source"&&!(_ in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ye(e,t){this.props=e,this.context=t}function yt(e,t){function _(r){var o=this.props.ref,i=o==r.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,r)||!i:me(this.props,r)}function n(r){return this.shouldComponentUpdate=_,S(e,r)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ye.prototype=new k).isPureReactComponent=!0,ye.prototype.shouldComponentUpdate=function(e,t){return me(this.props,e)||me(this.state,t)};var Je=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Je&&Je(e)};var gt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function bt(e){function t(_){var n=rt({},_);return delete n.ref,e(n,_.ref||null)}return t.$$typeof=gt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ke=function(e,t){return e==null?null:N(N(e).map(t))},Ct={map:Ke,forEach:Ke,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:N},kt=f.__e;f.__e=function(e,t,_,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=_.__e,t.__k=_.__k),r.__c(e,t)}kt(e,t,_,n)};var Qe=f.unmount;function ot(e,t,_){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rt({},e)).__c!=null&&(e.__c.__P===_&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ot(n,t,_)})),e}function ut(e,t,_){return e&&_&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return ut(n,t,_)}),e.__c&&e.__c.__P===t&&(e.__e&&_.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=_)),e}function K(){this.__u=0,this.t=null,this.__b=null}function it(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Et(e){var t,_,n;function r(o){if(t||(t=e()).then(function(i){_=i.default||i},function(i){n=i}),n)throw n;if(!_)throw t;return S(_,o)}return r.displayName="Lazy",r.__f=!0,r}function I(){this.u=null,this.o=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qe&&Qe(e)},(K.prototype=new k).__c=function(e,t){var _=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(_);var r=it(n.__v),o=!1,i=function(){o||(o=!0,_.__R=null,r?r(a):a())};_.__R=i;var a=function(){if(!--n.__u){if(n.state.__a){var s=n.state.__a;n.__v.__k[0]=ut(s,s.__c.__P,s.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var _=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ot(this.__b,_,n.__O=n.__P)}this.__b=null}var r=t.__a&&S(x,null,e.fallback);return r&&(r.__u&=-33),[S(x,null,t.__a?null:e.children),r]};var Xe=function(e,t,_){if(++_[1]===_[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(_=e.u;_;){for(;_.length>3;)_.pop()();if(_[1]<_[0])break;e.u=_=_[2]}};function St(e){return this.getChildContext=function(){return e.context},e.children}function xt(e){var t=this,_=e.i;t.componentWillUnmount=function(){T(null,t.l),t.l=null,t.i=null},t.i&&t.i!==_&&t.componentWillUnmount(),t.l||(t.i=_,t.l={nodeType:1,parentNode:_,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,r){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),T(S(St,{context:t.context},e.__v),t.l)}function Nt(e,t){var _=S(xt,{__v:e,i:t});return _.containerInfo=t,_}(I.prototype=new k).__a=function(e){var t=this,_=it(t.__v),n=t.o.get(e);return n[0]++,function(r){var o=function(){t.props.revealOrder?(n.push(r),Xe(t,e,n)):r()};_?_(o):o()}},I.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var _=t.length;_--;)this.o.set(t[_],this.u=[1,0,this.u]);return e.children},I.prototype.componentDidUpdate=I.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,_){Xe(e,_,t)})};var at=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Pt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ht=/[A-Z0-9]/g,Rt=typeof document<"u",Ut=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Dt(e,t,_){return t.__k==null&&(t.textContent=""),T(e,t),typeof _=="function"&&_(),e?e.__c:null}function Tt(e,t,_){return le(e,t),typeof _=="function"&&_(),e?e.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var et=f.event;function Ot(){}function Ft(){return this.cancelBubble}function At(){return this.defaultPrevented}f.event=function(e){return et&&(e=et(e)),e.persist=Ot,e.isPropagationStopped=Ft,e.isDefaultPrevented=At,e.nativeEvent=e};var ge,Lt={enumerable:!1,configurable:!0,get:function(){return this.class}},tt=f.vnode;f.vnode=function(e){typeof e.type=="string"&&function(t){var _=t.props,n=t.type,r={};for(var o in _){var i=_[o];if(!(o==="value"&&"defaultValue"in _&&i==null||Rt&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var a=o.toLowerCase();o==="defaultValue"&&"value"in _&&_.value==null?o="value":o==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?o="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||Ut(_.type)?a==="onfocus"?o="onfocusin":a==="onblur"?o="onfocusout":wt.test(o)?o=a:n.indexOf("-")===-1&&Pt.test(o)?o=o.replace(Ht,"-$&").toLowerCase():i===null&&(i=void 0):a=o="oninput",a==="oninput"&&r[o=a]&&(o="oninputCapture"),r[o]=i}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=N(_.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=N(_.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),_.class&&!_.className?(r.class=_.class,Object.defineProperty(r,"className",Lt)):(_.className&&!_.class||_.class&&_.className)&&(r.class=r.className=_.className),t.props=r}(e),e.$$typeof=at,tt&&tt(e)};var _t=f.__r;f.__r=function(e){_t&&_t(e),ge=e.__c};var nt=f.diffed;f.diffed=function(e){nt&&nt(e);var t=e.props,_=e.__e;_!=null&&e.type==="textarea"&&"value"in t&&t.value!==_.value&&(_.value=t.value==null?"":t.value),ge=null};var Vt={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value}}}},o_="17.0.2";function Mt(e){return S.bind(null,e)}function Q(e){return!!e&&e.$$typeof===at}function It(e){return Q(e)&&e.type===x}function Wt(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $t(e){return Q(e)?Te.apply(null,arguments):e}function Bt(e){return!!e.__k&&(T(null,e),!0)}function zt(e){return e&&(e.base||e.nodeType===1&&e)||null}var jt=function(e,t){return e(t)},qt=function(e,t){return e(t)},Gt=x;function lt(e){e()}function Yt(e){return e}function Zt(){return[!1,lt]}var Jt=M,Kt=Q;function Qt(e,t){var _=t(),n=Z({h:{__:_,v:t}}),r=n[0].h,o=n[1];return M(function(){r.__=_,r.v=t,ve(r)&&o({h:r})},[e,_,t]),de(function(){return ve(r)&&o({h:r}),e(function(){ve(r)&&o({h:r})})},[e]),_}function ve(e){var t,_,n=e.v,r=e.__;try{var o=n();return!((t=r)===(_=o)&&(t!==0||1/t==1/_)||t!=t&&_!=_)}catch{return!0}}var u_={useState:Z,useId:Ye,useReducer:pe,useEffect:de,useLayoutEffect:M,useInsertionEffect:Jt,useTransition:Zt,useDeferredValue:Yt,useSyncExternalStore:Qt,startTransition:lt,useRef:Be,useImperativeHandle:ze,useMemo:J,useCallback:je,useContext:qe,useDebugValue:Ge,version:"17.0.2",Children:Ct,render:Dt,hydrate:Tt,unmountComponentAtNode:Bt,createPortal:Nt,createElement:S,createContext:se,createFactory:Mt,cloneElement:$t,createRef:ue,Fragment:x,isValidElement:Q,isElement:Kt,isFragment:It,isMemo:Wt,findDOMNode:zt,Component:k,PureComponent:ye,memo:yt,forwardRef:bt,flushSync:qt,unstable_batchedUpdates:jt,StrictMode:Gt,Suspense:K,SuspenseList:I,lazy:Et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vt};export{Ct as Children,k as Component,x as Fragment,ye as PureComponent,Gt as StrictMode,K as Suspense,I as SuspenseList,Vt as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$t as cloneElement,se as createContext,S as createElement,Mt as createFactory,Nt as createPortal,ue as createRef,u_ as default,zt as findDOMNode,qt as flushSync,bt as forwardRef,Tt as hydrate,Kt as isElement,It as isFragment,Wt as isMemo,Q as isValidElement,Et as lazy,yt as memo,Dt as render,lt as startTransition,Bt as unmountComponentAtNode,jt as unstable_batchedUpdates,je as useCallback,qe as useContext,Ge as useDebugValue,Yt as useDeferredValue,de as useEffect,t_ as useErrorBoundary,Ye as useId,ze as useImperativeHandle,Jt as useInsertionEffect,M as useLayoutEffect,J as useMemo,pe as useReducer,Be as useRef,Z as useState,Qt as useSyncExternalStore,Zt as useTransition,o_ as version}; +//# sourceMappingURL=compat.bundle.js.map \ No newline at end of file diff --git a/bundled/preact/jsx-runtime.js b/bundled/preact/jsx-runtime.js new file mode 100644 index 0000000..9ff40a7 --- /dev/null +++ b/bundled/preact/jsx-runtime.js @@ -0,0 +1,7 @@ +/* esm.sh - esbuild bundle(preact@10.20.2/jsx-runtime) es2022 production */ +import{options as c,Fragment as _}from"./compat.js"; +import{Fragment as C}from"./compat.js"; + +var v=/["&<]/;function p(t){if(t.length===0||v.test(t)===!1)return t;for(var r=0,e=0,a="",o="";eother/": "https://esm.sh/", ">able/": "./", ">able/app.tsx": "./app.tsx" }, diff --git a/hmr-react.tsx b/hmr-react.tsx index 9f1f6a9..6d5afa1 100644 --- a/hmr-react.tsx +++ b/hmr-react.tsx @@ -31,7 +31,7 @@ export const HMR = RegisteredComponents: new Map() as Mapvoid>, statesNew: new Map() as Map, statesOld: new Map() as Map, - wireframe: false, + wireframe: true, RegisterComponent(reactID:string, value:()=>void):void { this.RegisteredComponents.set(reactID, value); @@ -172,5 +172,5 @@ const ProxyReducer =(inReducer:(inState:Storelike, inAction:string)=>Storelike, }; export * from "react-original"; -export {ProxyCreate as createElement, ProxyState as useState, ProxyReducer as useReducer }; -export default {...ReactParts, createElement:ProxyCreate, useState:ProxyState, useReducer:ProxyReducer}; \ No newline at end of file +export {ProxyCreate as createElement, ProxyCreate as jsxs, ProxyCreate as jsx, ProxyState as useState, ProxyReducer as useReducer }; +export default {...ReactParts, createElement:ProxyCreate, useState:ProxyState, useReducer:ProxyReducer }; \ No newline at end of file diff --git a/run-local.tsx b/run-local.tsx index c77fa7c..4c3f8c6 100644 --- a/run-local.tsx +++ b/run-local.tsx @@ -28,6 +28,7 @@ Configure({ { inImports["react-original"] = inImports["react"]; inImports["react"] = `/>able/hmr-react.tsx`; + inImports["react/jsx-runtime"] = `/>able/hmr-react.tsx`; inImports["signals-original"] = inImports["@preact/signals"]; inImports["@preact/signals"] = `/>able/hmr-signal.tsx`; diff --git a/run-serve.tsx b/run-serve.tsx index be1bdf6..0a1e813 100644 --- a/run-serve.tsx +++ b/run-serve.tsx @@ -1,6 +1,6 @@ import * as MIME from "https://deno.land/std@0.180.0/media_types/mod.ts"; import * as SWCW from "https://esm.sh/@swc/wasm-web@1.3.62"; -import SSR from "https://esm.sh/preact-render-to-string@6.4.2"; +import SSR from "https://esm.sh/preact-render-to-string@6.4.2?external=react&alias=preact:react"; import { HuntConfig, Root } from "./checker.tsx"; import CustomServe from ">able/api.tsx";