这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@giuem
Copy link
Contributor

@giuem giuem commented Dec 31, 2021

The esbuild supports multiple targets, this PR aligned tsup's API to esbuild

@vercel
Copy link

vercel bot commented Dec 31, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/egoist/tsup/62ESYEfMunH7UB6caT7XKGQY1b7r
✅ Preview: https://tsup-git-fork-giuem-dev-egoist.vercel.app

}
if (flags.target) {
options.target = flags.target.indexOf(',') >= 0 ? flags.target.split(',') : flags.target
}
Copy link
Owner

Choose a reason for hiding this comment

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

I guess you can just do .split without checking index

Copy link
Owner

Choose a reason for hiding this comment

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

oops I guess this is necessary otherwise this will fail:

if (options.target === 'es5') {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I will revert previous change

This reverts commit 1ac2691.
@egoist egoist changed the title feat: support multiple targets fix: support multiple targets Dec 31, 2021
@egoist egoist merged commit 2a42a02 into egoist:dev Dec 31, 2021
@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.11.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants