mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +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
|
||||
if (pathname.match(/\.((c|m)?j|t)sx?/g)) {
|
||||
if (pathname.match(/\.((c|m)?j|t)sx?$/g)) {
|
||||
return true
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user