swicthe dto requirejs and add build optimization