Skip to content

Instantly share code, notes, and snippets.

@stdavis
Last active February 11, 2024 23:04
Show Gist options
  • Save stdavis/6268929 to your computer and use it in GitHub Desktop.
Save stdavis/6268929 to your computer and use it in GitHub Desktop.
AMD Loader For Ignoring Modules in Dojo Build
require(['IgnoreModule!module/to/Ingore'], function (Ignore) {...});
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