From 6a110af875b1a05f837eae04737bac45a5ee29ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sat, 8 Jul 2023 21:11:20 +0200 Subject: [PATCH] fix: missing hash query param in load virtual conf (#2212) --- src/transform/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform/proxy.ts b/src/transform/proxy.ts index 388136cd2..4ed61a2e3 100644 --- a/src/transform/proxy.ts +++ b/src/transform/proxy.ts @@ -86,7 +86,7 @@ export const ResourceProxyPlugin = createUnplugin((options: ResourceProxyPluginO // prettier-ignore const code = `import { isObject, isFunction } from '@intlify/shared' export default async function() { - const loader = await import(${toCode(withQuery(resolve(baseDir, query.target), { config: 'true' }))}).then(m => m.default || m) + const loader = await import(${toCode(withQuery(resolve(baseDir, query.target), { hash: query.hash, config: 'true' }))}).then(m => m.default || m) const config = isFunction(loader) ? await loader() : isObject(loader)