AMD

AMD is an object bool: false option. It is also an acronym for Asynchronous Module Definition. Essentially, it is a format to provide a solution for modular JavaScript that developers. The format itself is a proposal for defining modules in which both the module and dependencies can be asynchronously loaded.

This allows you to set the value of require.amd or define.amd. Setting amd to false will disable AMD support.

Look inside the webpack.config.js file, as follows:

module.exports = {
  amd: {
    jQuery: true
  }
};

Popular modules for AMD, such as jQuery versions 1.7.0 to 1.9.1, will only register as an AMD module if the loader indicates that special allowances are permitted for multiple versions being used on one page. Another similar option, in terms of being a Boolean variable, is Bail. Let's take a closer look.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.59.187