Skip to content

Commit be5aa34

Browse files
committed
doc: Update README.md
1 parent 4b9d7bb commit be5aa34

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
<!--idoc:ignore:start-->
12
babel-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

56
Replace `export default` with `return`, or just remove `export default`.
67

@@ -42,7 +43,7 @@ Or
4243
const demo = 0;
4344
export default demo;
4445

45-
// Output ↓ ↓ ↓ ↓ ↓ ↓
46+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
4647
const demo = 0;
4748
return demo;
4849
```
@@ -62,7 +63,7 @@ const demo = 0;
6263
function demo() {};
6364
export default demo;
6465

65-
// Output ↓ ↓ ↓ ↓ ↓ ↓
66+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
6667
function demo() {};
6768
return demo;
6869
```
@@ -82,7 +83,7 @@ function demo() {};
8283
class demo { constructor() { } };
8384
export default demo;
8485

85-
// Output ↓ ↓ ↓ ↓ ↓ ↓
86+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
8687
class demo { constructor() { } };
8788
return demo;
8889
```
@@ -101,7 +102,7 @@ class demo { constructor() { } };
101102
// Input Code
102103
export default class demo { constructor() { } };
103104

104-
// Output ↓ ↓ ↓ ↓ ↓ ↓
105+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
105106
return class demo { constructor() { } };
106107
```
107108

@@ -118,7 +119,7 @@ Output Result
118119
// Input Code
119120
export default class demo { constructor() { } };
120121

121-
// Output ↓ ↓ ↓ ↓ ↓ ↓
122+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
122123
return class demo { constructor() { } };
123124
```
124125

@@ -147,7 +148,7 @@ Output Result
147148
// Input Code
148149
export default class demo {}
149150

150-
// Output ↓ ↓ ↓ ↓ ↓ ↓
151+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
151152
class demo {}
152153
```
153154

@@ -164,7 +165,7 @@ Output Result
164165
// Input Code
165166
export default function demo() {}
166167

167-
// Output ↓ ↓ ↓ ↓ ↓ ↓
168+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
168169
function demo() {}
169170
```
170171

@@ -182,7 +183,7 @@ Output Result
182183
class demo {}
183184
export default demo;
184185

185-
// Output ↓ ↓ ↓ ↓ ↓ ↓
186+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
186187
class demo {}
187188
```
188189

@@ -200,7 +201,7 @@ class demo {}
200201
function demo() {}
201202
export default demo;
202203

203-
// Output ↓ ↓ ↓ ↓ ↓ ↓
204+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
204205
function demo() {}
205206
```
206207

@@ -218,7 +219,7 @@ function demo() {}
218219
const demo = 0;
219220
export default demo;
220221

221-
// Output ↓ ↓ ↓ ↓ ↓ ↓
222+
// 👇👇👇 Output ↓ ↓ ↓ ↓ ↓ ↓
222223
const 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

239250
MIT © [`Kenny Wong`](https://github.com/jaywcjlove)

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"watch": "tsbb watch --disable-babel",
99
"build": "tsbb build --disable-babel",
1010
"test": "tsbb test",
11-
"coverage": "npm run build && tsbb test --coverage --bail"
11+
"coverage": "npm run build && tsbb test --coverage --bail",
12+
"start": "idoc --watch",
13+
"doc": "idoc"
1214
},
1315
"repository": {
1416
"type": "git",

0 commit comments

Comments
 (0)