Divergent reactivity of an indole glucosinolate yields Lossen or Neber rearrangement products: the phytoalexin rapalexin A or a unique β-d-glucopyranose fused heterocycle.