You just have to introduce a build tool like ncc (https://github.com/vercel/ncc) which will bundle your app into a single JS file.