Skip to content

Commit

Permalink
fix(config): allow to export config as tsup
Browse files Browse the repository at this point in the history
closes #351
  • Loading branch information
egoist committed Jul 6, 2021
1 parent 6f6f959 commit fc8d689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function bundleConfig(configFile: string) {
delete eval(`require.cache`)[outFile]
const result = require(outFile)
removeFile(outFile)
return result.default || result
return result.tsup || result.default || result
}
try {
await build({
Expand Down

1 comment on commit fc8d689

@vercel
Copy link

@vercel vercel bot commented on fc8d689 Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.