mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-11-02 06:42:22 +08:00
fix(asset): use consistent file paths for asset cache lookups
This commit is contained in:
parent
3ec79bbf65
commit
b0b33bdd5e
@ -67,7 +67,7 @@ export default function assetPlugin(): Plugin {
|
||||
referenceId = `__VITE_NODE_PUBLIC_ASSET__${hash}__`
|
||||
} else {
|
||||
const cache = assetCache.get(this.environment)!
|
||||
const cached = cache.get(id)
|
||||
const cached = cache.get(file)
|
||||
if (cached) {
|
||||
referenceId = cached
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user