
上QQ阅读APP看书,第一时间看更新
How it works...
The difference between a package and a module is as follows: a module contains a single JavaScript file that has certain functionalities. A package is a directory that contains several modules with a metadata file for each package. This metadata file will be a package.json file that is used to create scripts and track dependencies.
We will find this file at the root of the ASP.NET Core projects. It will list the node packages used in our applications.
Asynchronous module definition ( AMD) is a concept or pattern that is used to provide a solution to create modular code in several JavaScript files and load them separately and asynchronously, even if they are interdependent.