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 520139c commit 45595efCopy full SHA for 45595ef
packages/vite/src/node/utils.ts
@@ -290,7 +290,8 @@ export const isDataUrl = (url: string): boolean => dataUrlRE.test(url)
290
export const virtualModuleRE = /^virtual-module:.*/
291
export const virtualModulePrefix = 'virtual-module:'
292
293
-const knownJsSrcRE = /\.(?:[jt]sx?|m[jt]s|vue|marko|svelte|astro|imba)(?:$|\?)/
+const knownJsSrcRE =
294
+ /\.(?:[jt]sx?|m[jt]s|vue|marko|svelte|astro|imba|mdx)(?:$|\?)/
295
export const isJSRequest = (url: string): boolean => {
296
url = cleanUrl(url)
297
if (knownJsSrcRE.test(url)) {
0 commit comments