Skip to content

Commit

Permalink
chore(deps): revert the change
Browse files Browse the repository at this point in the history
  • Loading branch information
ziebam committed Oct 3, 2024
1 parent d592bda commit 8a72fee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vite/src/node/plugins/importMetaGlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function findCorrespondingCloseParenthesisPosition(

const importPrefix = '__vite_glob_'

const { basename, dirname, relative } = posix
const { basename, dirname, relative, join } = posix

export interface TransformGlobImportResult {
s: MagicString
Expand Down Expand Up @@ -401,7 +401,9 @@ export async function transformGlobImport(
cwd,
dot: !!options.exhaustive,
expandDirectories: false,
ignore: options.exhaustive ? [] : ['**/node_modules/**'],
ignore: options.exhaustive
? []
: [join(cwd, '**/node_modules/**')],
})
)
.filter((file) => file !== id)
Expand Down

0 comments on commit 8a72fee

Please sign in to comment.