Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
config.entry = async () => {
const entries = await resolveEntryAsync(expoEntry);
const expoEntryPointPath = env.locations.appMain;
if (entries.renderer && !entries.renderer.includes(expoEntryPointPath)) {
if (!Array.isArray(entries.renderer)) {
entries.renderer = [entries.renderer];
}
entries.renderer = entries.renderer.filter(
inputPath =>
!electronWebpackDefaultEntryPoints.some(possibleEntryPoint =>
inputPath.includes(possibleEntryPoint)
)
);
entries.renderer.push(expoEntryPointPath);