update error message

This commit is contained in:
Nuckyz 2024-06-21 18:14:41 -03:00
parent 2095cc8d03
commit 51dee70ced
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -429,7 +429,7 @@ export function mapMangledModule<S extends PropertyKey>(code: string | string[],
}
}
const [proxy] = proxyInner(`Webpack mapMangled mapper filter matched no module. Filter: ${printFilter(filter)}`, "Webpack find with proxy called on a primitive value. This can happen if you try to destructure a primitive in the top level definition of the find.");
const [proxy] = proxyInner(`Webpack mapMangledModule mapper filter matched no module. Filter: ${printFilter(filter)}`, "Webpack find with proxy called on a primitive value. This can happen if you try to destructure a primitive in the top level definition of the find.");
// Use the proxy to throw errors because no export matched the filter
mapping[newName] = proxy;
}