-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['loader!request'], function (someModule) { | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├── some-dir | |
│ ├── a.js | |
│ └── node_modules | |
│ ├── request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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