Video

TypeScript-Modules

External Modules

AMD (Browser)  

RequireJS


VS 


CommonJS (Server) 

Nodejs

Recap

  • Merge all our TypeScript into a single file --out
  • Internal Modules and module keyword
  • External Modules 
    • AMD --module "amd"
    • CommonJS --module "commonjs"

Javscript File A


loads


Javascript file B



traditionally 


VideoTypeScript-Modules

By basarat

VideoTypeScript-Modules

  • 817
Loading comments...

More from basarat