fix(nuxt3): correct auto-import file regexp (#985)

This commit is contained in:
Daniel Roe 2021-10-13 22:03:36 +01:00 committed by GitHub
parent ad4e2e98d9
commit d52b1e8d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
}, },