TS Module and Target

I’m very new to JS and stuff and every time when setting up a babylon project my head is spinning from all the variants of modules, targets and all these things. What are these modules, why are there so many, which one is the best and most modern to use? Should I set the typescript config to CommonJS and ES2020 or ES2020 and ES2020 or what is the best way?

Sorry if it’s a trivial thing and has been discussed many times, but I can’t find a simple and unambiguous answer to this.

Well, that depends :slight_smile:

What browsers are you targeting, and what type of project is this. Targeting es5 would be the safest, as all browsers support it fully. es2015 will be the next version that most browsers support. es2020 is (probably) not supported by all.