I am creating a basic node js application with express and ejs template engine. I want to use npm libraries like axios in the views that I create. Is it possible to create bundle files from those
Edit 2 : What I wanted to ask here is there a way to create a bundled javascript file for the frontend that I was using with express now that can be done via parcel but I had to run parcel again and again and I could not use ejs as parcel just works with HTML. eventually I used gulp to bundle the javascript that I was using by watching my production javascript. The question was not clear but I found the solution to my problem and hope that it helps someone who is stuck like me.
*
old question : How to use parcel with ejs EDIT : I am not getting the data from the my server I am using a 3rd party client side sdk that makes request to their server. I am using enablex.io to do video calls. That is the reson I just want to import axios in a variable and use axios whenever I need to make that request that can be done via parcel if I write a static html page but how can I do that with any templating engine like ejs.