mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
fix: don't handle file ids that begin with a null byte
This commit is contained in:
parent
1838bdbf3e
commit
ac894731f7
@ -87,6 +87,12 @@ export default function assetPlugin(): Plugin {
|
|||||||
return wasmHelperCode
|
return wasmHelperCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (id.startsWith('\0')) {
|
||||||
|
// Rollup convention, this id should be handled by the
|
||||||
|
// plugin that marked it with \0
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const assetResolved = resolveAsset(id)
|
const assetResolved = resolveAsset(id)
|
||||||
if (!assetResolved) {
|
if (!assetResolved) {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user