-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
fix: use correct require extension to load config #9118
Conversation
✅ Deploy Preview for vite-docs-main canceled.
|
My bad. Had to force-push. Committed to the wrong branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
I was thinking about hard-coding .ts
extension here, but this is definitely a better solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested with \.[cm][jt]s
and it worked 👍
Looks good, @bluwy could you resolve the conflicts, let's get this one before the next patch 👍🏼 |
Resolved 👍 |
Description
Fix #9112
Check in
_require.extensions
for.ts
added byts-node
before falling back to.js
.Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).