That’s a valid question, the entry point of any Playcanvas app is the constructor of the pc.Application class. When a new instance of that class is being instantiated that’s where the code starts executing:
For Playcanvas editor projects there is a launcher app in addition, spawning an instance of that class together with a loader. You can check that code that by downloading a build of any Playcanvas project.