6887a0f573
The itemNode and expandoNode elements have changed from img to span (https://bugs.dojotoolkit.org/ticket/16699), so we now put our tree icons inside them rather than replacing them. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
38 satır
979 B
JavaScript
38 satır
979 B
JavaScript
var profile = (function(){
|
|
var testResourceRe = /^dijit\/tests\//,
|
|
nodeModulesRe = /\/node_modules\//,
|
|
|
|
copyOnly = function(filename, mid){
|
|
var list = {
|
|
"dijit/dijit.profile":1,
|
|
"dijit/package.json":1,
|
|
"dijit/themes/claro/compile":1
|
|
};
|
|
return (mid in list) ||
|
|
(/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) ||
|
|
/(png|jpg|jpeg|gif|tiff)$/.test(filename) ||
|
|
nodeModulesRe.test(mid);
|
|
};
|
|
|
|
return {
|
|
resourceTags:{
|
|
test: function(filename, mid){
|
|
return testResourceRe.test(mid) || mid=="dijit/robot" || mid=="dijit/robotx";
|
|
},
|
|
|
|
copyOnly: function(filename, mid){
|
|
return copyOnly(filename, mid);
|
|
},
|
|
|
|
amd: function(filename, mid){
|
|
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
|
|
},
|
|
|
|
miniExclude: function(filename, mid){
|
|
return /^dijit\/bench\//.test(mid) ||
|
|
/^dijit\/themes\/themeTest/.test(mid) ||
|
|
nodeModulesRe.test(mid);
|
|
}
|
|
}
|
|
};
|
|
})();
|