Transforms the compile plugin into the new style (function instead of class).