diff --git a/packages/nuxt/src/core/plugins/virtual.ts b/packages/nuxt/src/core/plugins/virtual.ts index 95278916ec..b47c535dc2 100644 --- a/packages/nuxt/src/core/plugins/virtual.ts +++ b/packages/nuxt/src/core/plugins/virtual.ts @@ -26,8 +26,7 @@ export const VirtualFSPlugin = (nuxt = useNuxt(), options: VirtualFSPluginOption return { name: 'nuxt:virtual', - enforce: 'post', - + enforce: 'pre', resolveId (id, importer) { const _id = id id = resolveAlias(id, alias)