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)