preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 557 forks source link

Will this line ever result in returning {}? #360

Open VictorioBerra opened 7 years ago

VictorioBerra commented 7 years ago

https://github.com/preboot/angular-webpack/blob/51c72e481eecdaa461b8c3a1f021d2f2064e4b80/webpack.config.js#L44:L49

  if (!isTest) {
    config.entry = isTest ? {} : {

We only get this far if !isTest === true. With that logic, config.entry will never be an empty object.