mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(nuxt3): correct auto-import file regexp (#985)
This commit is contained in:
parent
ad4e2e98d9
commit
d52b1e8d99
@ -45,7 +45,7 @@ export const TransformPlugin = createUnplugin((map: IdentifierMap) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// js files
|
// js files
|
||||||
if (pathname.match(/\.((c|m)?j|t)sx?/g)) {
|
if (pathname.match(/\.((c|m)?j|t)sx?$/g)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user