Vite builder

Hi guys.

I am trying to move to the new ES6 code writing but I am so confused.

I work with Vite and in the build mode is createing a js file but I can’t call a class from it for example to create a main class that instantiate the app and pass some parameters to it.

What I am missing here, how can we add in this package builders parameters and use externally for example.

var myApp = new App(settings);

Tibi - FWD.