From 8bc613844d259296a7989051ca7c99d27fad4c3b Mon Sep 17 00:00:00 2001 From: userquin Date: Sat, 8 Jul 2023 14:19:32 +0200 Subject: [PATCH] fix: missing hash query param in load virtual conf --- 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)