Skip to content

Commit

Permalink
fix: missing hash query param in load virtual conf (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Jul 8, 2023
1 parent 8b8736f commit 6a110af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a110af

Please sign in to comment.