Skip to content

Commit 4c69e4f

Browse files
committed
chore: update this.resolve custom naming
1 parent b5da8b0 commit 4c69e4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vite/src/node/plugins/importMetaGlob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ export async function toAbsoluteGlob(
605605

606606
const resolved = normalizePath(
607607
(await resolveId(glob, importer, {
608-
custom: { 'glob-imports': isSubImportsPattern },
608+
custom: { 'vite:import-glob': { isSubImportsPattern } },
609609
})) || glob,
610610
)
611611
if (isSubImportsPattern) {

packages/vite/src/node/plugins/resolve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
186186
if (resolvedImports) {
187187
id = resolvedImports
188188

189-
if (resolveOpts.custom?.['glob-imports']) {
189+
if (resolveOpts.custom?.['vite:import-glob']?.isSubImportsPattern) {
190190
return id
191191
}
192192
}

0 commit comments

Comments
 (0)