3 ms·
Using Angular or Vue without a module system sounds awful. How do you organise your code? Manual namespacing on the global object? So I'm coming from a perspec
by nicoburns 8y ago
Using Angular or Vue without a module system sounds awful. How do you organise your code? Manual namespacing on the global object?
So I'm coming from a perspective where I will definitely be compiling my JavaScript regardless, and adding JSX doesn't make much difference complexity wise (and provides a much nicer syntax).
- Bahamut 8y agoCan't speak for Vue, but Angular has its own module system in addition to ES imports, which does give a gain when it comes to testing. There is one benefit to Angular's templates that is pretty nice due to its use of TypeScript - you get intellisense in editors on your templates.
- TomMarius 8y agoJSX is typed, you get all the benefits of intellisense and type safety. It even supports generics.
- bwindels 8y agoES modules with relative URLs have shipped in browsers, and when import maps [1] land, it could become viable to not bundle or transpile for local development and only do so for production builds. 1: https://github.com/WICG/import-maps https://github.com/WICG/import-maps