Merge named classes, support browserify