refactor part 2, add comments
refactor part 2, add comments

jescalan/webpack,ts-webpack/webpack,g0ddish/webpack,EliteScientist/webpack,rlugojr/webpack,jescalan/webpack,jescalan/webpack,rlugojr/webpack,g0ddish/webpack,webpack/webpack,NekR/webpack,webpack/webpack,rlugojr/webpack,SimenB/webpack,SimenB/webpack,ts-webpack/webpack,NekR/webpack,g0ddish/webpack,webpack/webpack,ts-webpack/webpack,EliteScientist/webpack,SimenB/webpack,SimenB/webpack,ts-webpack/webpack,webpack/webpack