@@ -1130,6 +1130,116 @@ if (import.meta.hot) {
11301130} "
11311131`;
11321132
1133+ exports[`esm (client, non-hydratable) > fix build > refs > should work with a function 1`] = `
1134+ "import { template as _$template } from "solid-js/web";
1135+ import { createComponent as _$createComponent } from "solid-js/web";
1136+ import { use as _$use } from "solid-js/web";
1137+ var _tmpl$ = /*#__PURE__*/_$template(\`<div >Comp\`);
1138+ import { $$component as _$$component } from "solid-refresh";
1139+ import { $$refresh as _$$refresh } from "solid-refresh";
1140+ import { $$registry as _$$registry } from "solid-refresh";
1141+ const _REGISTRY = _$$registry();
1142+ const Comp_1 = _$$component(_REGISTRY, "Comp_1", _props => /*@refresh jsx-skip*/(() => {
1143+ var _el$ = _tmpl$ ();
1144+ var _ref$ = _props .v0 ;
1145+ typeof _ref$ === " function" ? _$use (_ref$ , _el$ ) : _props .v0 = _el$ ;
1146+ return _el$ ;
1147+ } )(), {
1148+ location : " example.jsx:4:19" ,
1149+ signature : " 6f76290"
1150+ } );
1151+ const Comp = _$$component(_REGISTRY, "Comp", () => {
1152+ let el ;
1153+ return /* @refresh jsx-skip*/ _$createComponent (Comp_1 , {
1154+ v0 : _el => el = _el
1155+ });
1156+ } , {
1157+ location : " example.jsx:2:23" ,
1158+ signature : " 726057ca"
1159+ } );
1160+ if (import.meta.hot) {
1161+ _$$refresh (" esm" , import .meta .hot , _REGISTRY );
1162+ } "
1163+ `;
1164+
1165+ exports[`esm (client, non-hydratable) > fix build > refs > should work with a mutable variable 1`] = `
1166+ "import { template as _$template } from "solid-js/web";
1167+ import { createComponent as _$createComponent } from "solid-js/web";
1168+ import { use as _$use } from "solid-js/web";
1169+ var _tmpl$ = /*#__PURE__*/_$template(\`<div >Comp\`);
1170+ import { $$component as _$$component } from "solid-refresh";
1171+ import { $$refresh as _$$refresh } from "solid-refresh";
1172+ import { $$registry as _$$registry } from "solid-refresh";
1173+ const _REGISTRY = _$$registry();
1174+ const Comp_1 = _$$component(_REGISTRY, "Comp_1", _props => /*@refresh jsx-skip*/(() => {
1175+ var _el$ = _tmpl$ ();
1176+ var _ref$ = _props .v0 ;
1177+ typeof _ref$ === " function" ? _$use (_ref$ , _el$ ) : _props .v0 = _el$ ;
1178+ return _el$ ;
1179+ } )(), {
1180+ location : " example.jsx:4:19" ,
1181+ signature : " 6f76290"
1182+ } );
1183+ const Comp = _$$component(_REGISTRY, "Comp", () => {
1184+ let el ;
1185+ return /* @refresh jsx-skip*/ _$createComponent (Comp_1 , {
1186+ v0 : _arg => {
1187+ if (typeof el === " function" ) {
1188+ el (_arg );
1189+ } else {
1190+ el = _arg ;
1191+ }
1192+ }
1193+ });
1194+ } , {
1195+ location : " example.jsx:2:23" ,
1196+ signature : " d3db0f89"
1197+ } );
1198+ if (import.meta.hot) {
1199+ _$$refresh (" esm" , import .meta .hot , _REGISTRY );
1200+ } "
1201+ `;
1202+
1203+ exports[`esm (client, non-hydratable) > fix build > signals as refs > should work 1`] = `
1204+ "import { template as _$template } from "solid-js/web";
1205+ import { createComponent as _$createComponent } from "solid-js/web";
1206+ import { use as _$use } from "solid-js/web";
1207+ var _tmpl$ = /*#__PURE__*/_$template(\`<div >Comp\`);
1208+ import { $$component as _$$component } from "solid-refresh";
1209+ import { $$refresh as _$$refresh } from "solid-refresh";
1210+ import { $$registry as _$$registry } from "solid-refresh";
1211+ import { createSignal } from 'solid-js';
1212+ const _REGISTRY = _$$registry();
1213+ const Comp_1 = _$$component(_REGISTRY, "Comp_1", _props => /*@refresh jsx-skip*/(() => {
1214+ var _el$ = _tmpl$ ();
1215+ var _ref$ = _props .v0 ;
1216+ typeof _ref$ === " function" ? _$use (_ref$ , _el$ ) : _props .v0 = _el$ ;
1217+ return _el$ ;
1218+ } )(), {
1219+ location : " example.jsx:6:19" ,
1220+ signature : " 6f76290"
1221+ } );
1222+ const Comp = _$$component(_REGISTRY, "Comp", () => {
1223+ const [el , setEl ] = createSignal ();
1224+ return /* @refresh jsx-skip*/ _$createComponent (Comp_1 , {
1225+ v0 : _arg => {
1226+ if (typeof setEl === " function" ) {
1227+ setEl (_arg );
1228+ }
1229+ }
1230+ });
1231+ } , {
1232+ location : " example.jsx:4:23" ,
1233+ signature : " 57db44c6" ,
1234+ dependencies : () => ({
1235+ createSignal
1236+ })
1237+ } );
1238+ if (import.meta.hot) {
1239+ _$$refresh (" esm" , import .meta .hot , _REGISTRY );
1240+ } "
1241+ `;
1242+
11331243exports[`esm (client, non-hydratable) > fix render > @refresh reload > should work 1`] = `
11341244"import { createComponent as _$createComponent } from "solid-js/web";
11351245import { $$decline as _$$decline } from "solid-refresh";
0 commit comments