Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: isSupportedFormat ts ext name #629

Merged
merged 5 commits into from Mar 21, 2024
Merged

Conversation

ErKeLost
Copy link
Contributor

Description

Test Plan


Copy link

netlify bot commented Mar 21, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit c5ee54c
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/65fc40eb13150c0008c5747e

@@ -23,5 +23,5 @@ export async function loadConfig(
*/
function isSupportedFormat(configPath: string): boolean {
const ext = path.extname(configPath)
return /\.(js|mjs)$/.test(ext)
return /\.(js|mjs|ts)$/.test(ext)
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

As commented here, we are currently not supporting the ts extension.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your reply. I see that error's prompt supports ts format, so do you think other logic optimizations can be merged? I can remove the rules of this ts type.

Copy link
Sponsor Contributor

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

Your PR looks a good refactoring for me. :)

Copy link
Member

@hyf0 hyf0 left a comment

Choose a reason for hiding this comment

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

Thanks!

@hyf0 hyf0 merged commit 28c1b88 into rolldown:main Mar 21, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants