Skip to content

Commit

Permalink
chore: update this.resolve custom naming
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Apr 19, 2023
1 parent b5da8b0 commit 4c69e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importMetaGlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export async function toAbsoluteGlob(

const resolved = normalizePath(
(await resolveId(glob, importer, {
custom: { 'glob-imports': isSubImportsPattern },
custom: { 'vite:import-glob': { isSubImportsPattern } },
})) || glob,
)
if (isSubImportsPattern) {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
if (resolvedImports) {
id = resolvedImports

if (resolveOpts.custom?.['glob-imports']) {
if (resolveOpts.custom?.['vite:import-glob']?.isSubImportsPattern) {
return id
}
}
Expand Down

0 comments on commit 4c69e4f

Please sign in to comment.