If I have a node.js application that is filled with many require statements, how can I compile this into a single .js file? I\'d have to manually r
require
.js
Try below:
npm i -g @vercel/ncc
ncc build app.ts -o dist
see detail here https://stackoverflow.com/a/65317389/1979406