1+ <!-- idoc:ignore:start-->
12babel-plugin-transform-replace-export-default
23===
3- <!-- rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px; -->
4+ <!-- idoc:ignore:end -->
45
56Replace ` export default ` with ` return ` , or just remove ` export default ` .
67
4243const demo = 0 ;
4344export default demo ;
4445
45- // Output ↓ ↓ ↓ ↓ ↓ ↓
46+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
4647const demo = 0 ;
4748return demo;
4849```
@@ -62,7 +63,7 @@ const demo = 0;
6263function demo () {};
6364export default demo ;
6465
65- // Output ↓ ↓ ↓ ↓ ↓ ↓
66+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
6667function demo () {};
6768return demo;
6869```
@@ -82,7 +83,7 @@ function demo() {};
8283class demo { constructor () { } };
8384export default demo ;
8485
85- // Output ↓ ↓ ↓ ↓ ↓ ↓
86+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
8687class demo { constructor () { } };
8788return demo;
8889```
@@ -101,7 +102,7 @@ class demo { constructor() { } };
101102// Input Code
102103export default class demo { constructor () { } };
103104
104- // Output ↓ ↓ ↓ ↓ ↓ ↓
105+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
105106return class demo { constructor () { } };
106107```
107108
@@ -118,7 +119,7 @@ Output Result
118119// Input Code
119120export default class demo { constructor () { } };
120121
121- // Output ↓ ↓ ↓ ↓ ↓ ↓
122+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
122123return class demo { constructor () { } };
123124```
124125
@@ -147,7 +148,7 @@ Output Result
147148// Input Code
148149export default class demo {}
149150
150- // Output ↓ ↓ ↓ ↓ ↓ ↓
151+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
151152class demo {}
152153```
153154
@@ -164,7 +165,7 @@ Output Result
164165// Input Code
165166export default function demo () {}
166167
167- // Output ↓ ↓ ↓ ↓ ↓ ↓
168+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
168169function demo () {}
169170```
170171
@@ -182,7 +183,7 @@ Output Result
182183class demo {}
183184export default demo ;
184185
185- // Output ↓ ↓ ↓ ↓ ↓ ↓
186+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
186187class demo {}
187188```
188189
@@ -200,7 +201,7 @@ class demo {}
200201function demo () {}
201202export default demo ;
202203
203- // Output ↓ ↓ ↓ ↓ ↓ ↓
204+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
204205function demo () {}
205206```
206207
@@ -218,7 +219,7 @@ function demo() {}
218219const demo = 0 ;
219220export default demo ;
220221
221- // Output ↓ ↓ ↓ ↓ ↓ ↓
222+ // 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
222223const demo = 0 ;
223224```
224225
@@ -234,6 +235,16 @@ const demo = 0;
234235- [ markdown-react-code-preview-loader] ( https://github.com/kktjs/markdown-react-code-preview-loader )
235236- [ babel-plugin-transform-remove-imports] ( https://github.com/uiwjs/babel-plugin-transform-remove-imports )
236237
238+ ## Contributors
239+
240+ As always, thanks to our amazing contributors!
241+
242+ <a href =" https://github.com/kktjs/babel-plugin-transform-replace-export-default/graphs/contributors " >
243+ <img src =" https://kktjs.github.io/babel-plugin-transform-replace-export-default/CONTRIBUTORS.svg " />
244+ </a >
245+
246+ Made with [ github-action-contributors] ( https://github.com/jaywcjlove/github-action-contributors ) .
247+
237248## License
238249
239250MIT © [ ` Kenny Wong ` ] ( https://github.com/jaywcjlove )
0 commit comments