Dependency Management Got Awesome
CommonJS and AMD Compliant dependency loader for modern web apps
Inject.enableAMDPlugins
0.7.x
Inject.enableAMDPlugins();
By default in Inject, the use of AMD Plugins is disabled by default. This reduces the total execution time of modules and improves performance in runtime environments.
However, if you’d like to use AMD plugins, they can be accomplished by calling the enableAMDPlugins
method. This method adds a rule to Inject, which enables the plugin!parameters
syntax commonly used by AMD style plugins. Internally, it is adding a Fetch Rule in order to intercept the module call, load the plugin, and process the module.
Due to the complexity of the rule, AMD Plugins cannot currently be turned off once enabled.
- CommonJS Interface
- AMD Interface
- The Inject API
- Inject.addContentRule
- Inject.addFetchRule
- Inject.addFileRule
- Inject.addModuleRule
- Inject.addPackage
- Inject.createContext
- Inject.disableAMD
- Inject.disableSourceUrls
- Inject.disableSuffixes
- Inject.enableAMD
- Inject.enableSourceUrls
- Inject.enableSuffixes
- Inject.reset
- Inject.setCacheKey
- Inject.setCrossDomain
- Inject.setExpires
- Inject.setModuleRoot
- require.run
- How To and Tutorials