From 1299e858dfb8cffb66d7e82f5a0a9c96e5fe3ee6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 6 Oct 2024 11:48:15 +0200 Subject: [PATCH] fix: run virtual plugin first --- packages/nuxt/src/core/plugins/virtual.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)