I doubt that ExtJS was parsing/analyzing JS code at runtime.
Angular 4 is TypeScript and therefore much less hacky.
I don't remember how the build stuff differed but it wasn't required (though I'm sure there was a benefit to using it).
*Note: Not sure which version this was.