How come

is equal to

I know that it can be shown using several exponent laws but I thought those were only valid for a rational exponent as long as the base is positive. I have been told that negative bases rased to rational exponents is undefined. Somebody please help me sort this conundrum out!