Add macroexpand middleware