This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo loader. Note that this plugin will not work with AMD loaders other than the Dojo loader.
See the dojo/node reference documentation for more information.
Standard AMD plugin interface. See https://github.com/amdjs/amdjs-api/wiki/Loader-Plugins for information.
Parameter | Type | Description |
---|---|---|
id | string | |
require | Function | |
load | Function |
Produces a normalized id to be used by node. Relative ids are resolved relative to the requesting module's location in the file system and will return an id with path separators appropriate for the local file system.
Parameter | Type | Description |
---|---|---|
id | string | |
normalize | Function |