Skip to content

Commit

Permalink
feat: support vite.config.mts and vite.config.cts
Browse files Browse the repository at this point in the history
It's added in Vite 3.0:
vitejs/vite#8729
  • Loading branch information
haoqunjiang committed Jul 14, 2022
1 parent 1c44eae commit c5f1e9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions npm/vite-dev-server/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ export const configFiles = [
'vite.config.js',
'vite.config.mjs',
'vite.config.cjs',
'vite.config.mts',
'vite.config.cts',
]
2 changes: 1 addition & 1 deletion packages/launchpad/cypress/e2e/error-handling.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Error handling', () => {
cy.openProject('missing-vite-config', ['--component'])
cy.visitLaunchpad()

;['vite.config.js', 'vite.config.ts', 'vite.config.mjs', 'vite.config.cjs'].forEach((idiomaticConfigFile) => {
;['vite.config.js', 'vite.config.ts', 'vite.config.mjs', 'vite.config.cjs', 'vite.config.mts', 'vite.config.cts'].forEach((idiomaticConfigFile) => {
cy.contains(idiomaticConfigFile)
})

Expand Down

0 comments on commit c5f1e9e

Please sign in to comment.