Skip to content

Commit

Permalink
fix: export in module style (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jun 10, 2021
1 parent a1ddf72 commit 020e157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function buildExamples(c: DocsConfigInterface) {
o.push(` },`);
o.push(`};`);
o.push(``);
o.push(`export = config;`);
o.push(`export default config;`);
o.push(`\`\`\``);

return o.join('\n');
Expand Down
2 changes: 1 addition & 1 deletion src/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const config: CapacitorConfig = {
},
};

export = config;
export default config;
```

</docgen-config>
Expand Down

0 comments on commit 020e157

Please sign in to comment.