Skip to content

Commit 020e157

Browse files
authored
fix: export in module style (#25)
1 parent a1ddf72 commit 020e157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/output.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function buildExamples(c: DocsConfigInterface) {
275275
o.push(` },`);
276276
o.push(`};`);
277277
o.push(``);
278-
o.push(`export = config;`);
278+
o.push(`export default config;`);
279279
o.push(`\`\`\``);
280280

281281
return o.join('\n');

src/test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const config: CapacitorConfig = {
251251
},
252252
};
253253

254-
export = config;
254+
export default config;
255255
```
256256

257257
</docgen-config>

0 commit comments

Comments
 (0)