@@ -1170,6 +1170,119 @@ if (import.meta.webpackHot) {
11701170} "
11711171`;
11721172
1173+ exports[`rspack-esm (client, hydratable) > fix build > refs > should work with a function 1`] = `
1174+ "import { template as _$template } from "solid-js/web";
1175+ import { createComponent as _$createComponent } from "solid-js/web";
1176+ import { getNextElement as _$getNextElement } from "solid-js/web";
1177+ import { use as _$use } from "solid-js/web";
1178+ var _tmpl$ = /*#__PURE__*/_$template(\`<div >Comp\`);
1179+ import { $$component as _$$component } from "solid-refresh";
1180+ import { $$refresh as _$$refresh } from "solid-refresh";
1181+ import { $$registry as _$$registry } from "solid-refresh";
1182+ const _REGISTRY = _$$registry();
1183+ const Comp_1 = _$$component(_REGISTRY, "Comp_1", _props => /*@refresh jsx-skip*/(() => {
1184+ var _el$ = _$getNextElement (_tmpl$ );
1185+ var _ref$ = _props .v0 ;
1186+ typeof _ref$ === " function" ? _$use (_ref$ , _el$ ) : _props .v0 = _el$ ;
1187+ return _el$ ;
1188+ } )(), {
1189+ location : " example.jsx:4:19" ,
1190+ signature : " 6f76290"
1191+ } );
1192+ const Comp = _$$component(_REGISTRY, "Comp", () => {
1193+ let el ;
1194+ return /* @refresh jsx-skip*/ _$createComponent (Comp_1 , {
1195+ v0 : _el => el = _el
1196+ });
1197+ } , {
1198+ location : " example.jsx:2:23" ,
1199+ signature : " 726057ca"
1200+ } );
1201+ if (import.meta.webpackHot) {
1202+ _$$refresh (" rspack-esm" , import .meta .webpackHot , _REGISTRY );
1203+ } "
1204+ `;
1205+
1206+ exports[`rspack-esm (client, hydratable) > fix build > refs > should work with a mutable variable 1`] = `
1207+ "import { template as _$template } from "solid-js/web";
1208+ import { createComponent as _$createComponent } from "solid-js/web";
1209+ import { getNextElement as _$getNextElement } from "solid-js/web";
1210+ import { use as _$use } from "solid-js/web";
1211+ var _tmpl$ = /*#__PURE__*/_$template(\`<div >Comp\`);
1212+ import { $$component as _$$component } from "solid-refresh";
1213+ import { $$refresh as _$$refresh } from "solid-refresh";
1214+ import { $$registry as _$$registry } from "solid-refresh";
1215+ const _REGISTRY = _$$registry();
1216+ const Comp_1 = _$$component(_REGISTRY, "Comp_1", _props => /*@refresh jsx-skip*/(() => {
1217+ var _el$ = _$getNextElement (_tmpl$ );
1218+ var _ref$ = _props .v0 ;
1219+ typeof _ref$ === " function" ? _$use (_ref$ , _el$ ) : _props .v0 = _el$ ;
1220+ return _el$ ;
1221+ } )(), {
1222+ location : " example.jsx:4:19" ,
1223+ signature : " 6f76290"
1224+ } );
1225+ const Comp = _$$component(_REGISTRY, "Comp", () => {
1226+ let el ;
1227+ return /* @refresh jsx-skip*/ _$createComponent (Comp_1 , {
1228+ v0 : _arg => {
1229+ if (typeof el === " function" ) {
1230+ el (_arg );
1231+ } else {
1232+ el = _arg ;
1233+ }
1234+ }
1235+ });
1236+ } , {
1237+ location : " example.jsx:2:23" ,
1238+ signature : " d3db0f89"
1239+ } );
1240+ if (import.meta.webpackHot) {
1241+ _$$refresh (" rspack-esm" , import .meta .webpackHot , _REGISTRY );
1242+ } "
1243+ `;
1244+
1245+ exports[`rspack-esm (client, hydratable) > fix build > signals as refs > should work 1`] = `
1246+ "import { template as _$template } from "solid-js/web";
1247+ import { createComponent as _$createComponent } from "solid-js/web";
1248+ import { getNextElement as _$getNextElement } from "solid-js/web";
1249+ import { use as _$use } from "solid-js/web";
1250+ var _tmpl$ = /*#__PURE__*/_$template(\`<div >Comp\`);
1251+ import { $$component as _$$component } from "solid-refresh";
1252+ import { $$refresh as _$$refresh } from "solid-refresh";
1253+ import { $$registry as _$$registry } from "solid-refresh";
1254+ import { createSignal } from 'solid-js';
1255+ const _REGISTRY = _$$registry();
1256+ const Comp_1 = _$$component(_REGISTRY, "Comp_1", _props => /*@refresh jsx-skip*/(() => {
1257+ var _el$ = _$getNextElement (_tmpl$ );
1258+ var _ref$ = _props .v0 ;
1259+ typeof _ref$ === " function" ? _$use (_ref$ , _el$ ) : _props .v0 = _el$ ;
1260+ return _el$ ;
1261+ } )(), {
1262+ location : " example.jsx:6:19" ,
1263+ signature : " 6f76290"
1264+ } );
1265+ const Comp = _$$component(_REGISTRY, "Comp", () => {
1266+ const [el , setEl ] = createSignal ();
1267+ return /* @refresh jsx-skip*/ _$createComponent (Comp_1 , {
1268+ v0 : _arg => {
1269+ if (typeof setEl === " function" ) {
1270+ setEl (_arg );
1271+ }
1272+ }
1273+ });
1274+ } , {
1275+ location : " example.jsx:4:23" ,
1276+ signature : " 57db44c6" ,
1277+ dependencies : () => ({
1278+ createSignal
1279+ })
1280+ } );
1281+ if (import.meta.webpackHot) {
1282+ _$$refresh (" rspack-esm" , import .meta .webpackHot , _REGISTRY );
1283+ } "
1284+ `;
1285+
11731286exports[`rspack-esm (client, hydratable) > fix render > @refresh reload > should work 1`] = `
11741287"import { createComponent as _$createComponent } from "solid-js/web";
11751288import { $$decline as _$$decline } from "solid-refresh";
0 commit comments