building a component library based on AMD loading