How to initiate and build a Plotly.js project using Vite?

How to build plotly.js project uisng WebPack is explained in the getting started in javascript.

Has anyone tried to initiate and build a plotly.js project using Vite?

I have been trying all day with no luck. Would love to know if someone has figured this out but currently seems like we’re going to have to switch back to Vue CLI