File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import type { PluginsInjections } from './runtime/plugins/01.plugin'
2828import { LocaleManager } from './locale-manager'
2929import { extractDefineI18nRouteData } from './utils'
3030import { isInternalPath } from './runtime/utils/path-utils'
31- import { glob } from 'glob '
31+ import { globby } from 'globby '
3232
3333function generateI18nTypes ( ) {
3434 return `
@@ -139,7 +139,7 @@ export default defineNuxtModule<ModuleOptions>({
139139 const globalLocaleRoutes : Record < string , Record < string , string > > = { }
140140
141141 // Find all page files
142- const pageFiles = glob . sync ( 'pages/**/*.vue' , { cwd : nuxt . options . rootDir } )
142+ const pageFiles = await globby ( 'pages/**/*.vue' , { cwd : nuxt . options . rootDir } )
143143
144144 for ( const pageFile of pageFiles ) {
145145 const fullPath = join ( nuxt . options . rootDir , pageFile )
You can’t perform that action at this time.
0 commit comments