Frontend dependency management is always the discussion point, people have a lot of to say. The key reason for this is that javaScript language itself does not provide module like support, it really sucks developers.
For years ago, developers used to use <script> tag to write code, however when the page codes grows, the maintainability will be harder and harder. Then, with the arise of nodejs, CommonJS brings up using require, exports to resolve modules. It seems really nice when using in nodejs, however, when it meets browser, it works not quite well. The reason is simply that browser does not support synchronous require, it can not load a script from file I/O. Then AMD comes up a specification used well for browser.
Your new post is loading...