Merge branch 'immediate-finds' into immediate-finds-modules-proxy

This commit is contained in:
Nuckyz 2024-06-21 18:14:54 -03:00
commit eba42489e9
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -435,7 +435,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 // Use the proxy to throw errors because no export matched the filter
mapping[newName] = proxy; mapping[newName] = proxy;
} }