webpack/webpack — pull request #107 by jhnns (2013-10-14 13:34:26+00:00)
Title: Allow define-variables to be undefined

I was using the new define-option with a value from my config. This value is either set or undefined depending on the process. I expected that webpack includes the value from the config and all if-statements would evaluate to false if the value is undefined. But instead of that webpack crashes because it tries to call `toString()` on `undefined`.

So I made the type check more accurate imho.