Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
wco => [
getCommonConfig(wco),
getServerConfig(wco),
getStylesConfig(wco),
getStatsConfig(wco),
getAotConfig(wco),
],
);
export function getCompilerConfig(wco: WebpackConfigOptions): webpack.Configuration {
if (wco.buildOptions.main || wco.buildOptions.polyfills) {
return wco.buildOptions.aot ? getAotConfig(wco) : getNonAotConfig(wco);
}
return {};
}