Skip to content

Instantly share code, notes, and snippets.

@jstrimpel
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstrimpel/a9e9a12ac48b1f1de705 to your computer and use it in GitHub Desktop.
Save jstrimpel/a9e9a12ac48b1f1de705 to your computer and use it in GitHub Desktop.
get module path and/or module id for module that called the plugin load
define(['loader!request'], function (someModule) {
});
├── some-dir
│   ├── a.js
│   └── node_modules
│   ├── request
define({
load: function (name, req, onload, config) {
// how do i get the path and/or module id for the module that is leveraging the plugin?
// in the case module a.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment