Last active
February 11, 2024 23:04
-
-
Save stdavis/6268929 to your computer and use it in GitHub Desktop.
AMD Loader For Ignoring Modules in Dojo Build
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
require(['IgnoreModule!module/to/Ingore'], function (Ignore) {...}); |
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(function () { | |
// summary: | |
// A dojo loader plugin for loading esri modules so that | |
// they get ignored by the build system. | |
return { | |
load: function (id, require, callback) { | |
// id: String | |
// esri module id | |
// require: Function | |
// AMD require; usually a context-sensitive require bound to the module making the plugin request | |
// callback: Function | |
// Callback function which will be called, when the loading finished. | |
require([id], function (mod) { | |
callback(mod); | |
}); | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment