We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076615a commit 22182f2Copy full SHA for 22182f2
1 file changed
packages/vike/src/utils/isScriptFile.ts
@@ -57,7 +57,7 @@ const extTemplates = [
57
] as const
58
59
const scriptFileExtensionList = [...extJsOrTs, ...extJsxOrTsx, ...extTemplates] as const
60
-const scriptFileExtensionPattern = '(' + scriptFileExtensionList.join('|') + ')'
+const scriptFileExtensionPattern = '{' + scriptFileExtensionList.join(',') + '}'
61
62
function isScriptFile(filePath: string): boolean {
63
return scriptFileExtensionList.some((ext) => filePath.endsWith('.' + ext))
0 commit comments