fix: don't handle module ID that begin with \0
(#530)
This commit is contained in:
parent
b3185d7fc5
commit
73dfee5a4f
|
@ -87,6 +87,12 @@ export default function assetPlugin(): Plugin {
|
|||
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)
|
||||
if (!assetResolved) {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue