Skip to content

Commit 22182f2

Browse files
committed
fix: update glob pattern to work with Vite 8
1 parent 076615a commit 22182f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vike/src/utils/isScriptFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const extTemplates = [
5757
] as const
5858

5959
const scriptFileExtensionList = [...extJsOrTs, ...extJsxOrTsx, ...extTemplates] as const
60-
const scriptFileExtensionPattern = '(' + scriptFileExtensionList.join('|') + ')'
60+
const scriptFileExtensionPattern = '{' + scriptFileExtensionList.join(',') + '}'
6161

6262
function isScriptFile(filePath: string): boolean {
6363
return scriptFileExtensionList.some((ext) => filePath.endsWith('.' + ext))

0 commit comments

Comments
 (0)