add pack umd but may have some errors
add pack umd but may have some errors