I assume you're referring to AEP Tags.
What you've described is correct for Custom Code actions. However, Custom Code events and conditions are always included in the JS file. Also, all other extensions' components get included in the JS file too (unless the extensions developers have done otherwise...