Ionic app to umd

does anyone know know how to bundle ionic apps to umd format?

https://www.davidbcalhoun.com/2014/what-is-amd-commonjs-and-umd/

I am not being able to make it work. I have bundle it to umd and tried to use system.import in another project but it gives error