Code reading help. ES6, plugin-outlet `_connectorCache`, custom-html `_customizations`, appEvents

To be clear, you are trying to copy how Discourse’s asset pipeline works in another project?

What Discourse does is very complicated and specific to our use case. Just as an extreme example, we have our own hand-rolled template compiler for our virtual dom library. You don’t want to get lost in that unless you are Discourse.

I would not recommend it for another project. I recommend you use something like rails-webpacker instead.