@@ -35,13 +35,14 @@ exports[`rspack-esm > ExportDefaultDeclaration w/ FunctionExpression > should tr
3535import { $$refresh as _$$refresh } from \\ "solid-refresh\\ ";
3636import { $$registry as _$$registry } from \\ "solid-refresh\\ ";
3737const _REGISTRY = _$$registry();
38- // @refresh granular
39- export default _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
38+ var Foo = _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
4039 return <h1 >Foo</h1 >;
4140} , {
4241 location : \\" example.jsx:3:21\\ " ,
4342 signature : \\" 83fbb41\\ "
4443} );
44+ // @refresh granular
45+ export default Foo;
4546if (import.meta.webpackHot) {
4647 _$$refresh (\\" rspack-esm\\ " , import .meta .webpackHot , _REGISTRY );
4748} "
@@ -54,7 +55,7 @@ import { $$registry as _$$registry } from \\"solid-refresh\\";
5455const _REGISTRY = _$$registry();
5556// @refresh granular
5657const example = 'Foo';
57- export default _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
58+ var Foo = _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
5859 return <h1 >{ example } </h1 >;
5960} , {
6061 location : \\" example.jsx:4:21\\ " ,
@@ -63,6 +64,7 @@ export default _$$component(_REGISTRY, \\"Foo\\", function Foo() {
6364 example
6465 }
6566} );
67+ export default Foo;
6668if (import.meta.webpackHot) {
6769 _$$refresh (\\" rspack-esm\\ " , import .meta .webpackHot , _REGISTRY );
6870} "
@@ -75,7 +77,7 @@ import { $$registry as _$$registry } from \\"solid-refresh\\";
7577const _REGISTRY = _$$registry();
7678// @refresh granular
7779const Example = createContext();
78- export default _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
80+ var Foo = _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
7981 return <Example.Provider >Foo</Example.Provider >;
8082} , {
8183 location : \\" example.jsx:4:21\\ " ,
@@ -84,6 +86,7 @@ export default _$$component(_REGISTRY, \\"Foo\\", function Foo() {
8486 Example
8587 }
8688} );
89+ export default Foo;
8790if (import.meta.webpackHot) {
8891 _$$refresh (\\" rspack-esm\\ " , import .meta .webpackHot , _REGISTRY );
8992} "
@@ -94,11 +97,12 @@ exports[`rspack-esm > ExportDefaultDeclaration w/ FunctionExpression > should tr
9497import { $$refresh as _$$refresh } from \\ "solid-refresh\\ ";
9598import { $$registry as _$$registry } from \\ "solid-refresh\\ ";
9699const _REGISTRY = _$$registry();
97- export default _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
100+ var Foo = _$$component(_REGISTRY, \\ "Foo\\ ", function Foo() {
98101 return <h1 >Foo</h1 >;
99102} , {
100103 location : \\" example.jsx:2:21\\ "
101104} );
105+ export default Foo;
102106if (import.meta.webpackHot) {
103107 _$$refresh (\\" rspack-esm\\ " , import .meta .webpackHot , _REGISTRY );
104108} "
@@ -109,11 +113,12 @@ exports[`rspack-esm > ExportDefaultDeclaration w/ FunctionExpression > should tr
109113import { $$refresh as _$$refresh } from \\ "solid-refresh\\ ";
110114import { $$registry as _$$registry } from \\ "solid-refresh\\ ";
111115const _REGISTRY = _$$registry();
112- export default _$$component(_REGISTRY, \\ "Foo\\ ", function Foo(props) {
116+ var Foo = _$$component(_REGISTRY, \\ "Foo\\ ", function Foo(props) {
113117 return <h1 >Foo</h1 >;
114118} , {
115119 location : \\" example.jsx:2:21\\ "
116120} );
121+ export default Foo;
117122if (import.meta.webpackHot) {
118123 _$$refresh (\\" rspack-esm\\ " , import .meta .webpackHot , _REGISTRY );
119124} "
0 commit comments