fixes #3 and webpack/webpack#143