summaryrefslogtreecommitdiff
path: root/lib/dojo/dojo.profile.js
diff options
context:
space:
mode:
authorAnders Kaseorg <[email protected]>2017-01-20 12:29:59 -0500
committerAnders Kaseorg <[email protected]>2017-01-21 13:22:14 -0500
commit6887a0f57307820b097b51aee952c555bcf69024 (patch)
treeff041c03ac0251468eb4308927052f8bd6071ca3 /lib/dojo/dojo.profile.js
parent9f539be3c2c93ce358b10ca396e922b3b99b56ea (diff)
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
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 <[email protected]>
Diffstat (limited to 'lib/dojo/dojo.profile.js')
-rw-r--r--lib/dojo/dojo.profile.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/dojo/dojo.profile.js b/lib/dojo/dojo.profile.js
index 4b24edb5e..7a2f24dbf 100644
--- a/lib/dojo/dojo.profile.js
+++ b/lib/dojo/dojo.profile.js
@@ -1,5 +1,6 @@
var profile = (function(){
- var testResourceRe = /^dojo\/tests\//,
+ var testResourceRe = /^dojo\/tests(?:DOH)?\//,
+ nodeModulesRe = /\/node_modules\//,
copyOnly = function(filename, mid){
var list = {
@@ -19,13 +20,14 @@ var profile = (function(){
/^dojo\/_base\/config\w+$/.test(mid) ||
(/^dojo\/resources\//.test(mid) && !/\.css$/.test(filename)) ||
/(png|jpg|jpeg|gif|tiff)$/.test(filename) ||
+ nodeModulesRe.test(mid) ||
/built\-i18n\-test\/152\-build/.test(mid);
};
return {
resourceTags:{
test: function(filename, mid){
- return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx";
+ return testResourceRe.test(mid) || mid=="dojo/robot" || mid=="dojo/robotx";
},
copyOnly: function(filename, mid){
@@ -34,6 +36,10 @@ var profile = (function(){
amd: function(filename, mid){
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
+ },
+
+ miniExclude: function(filename, mid){
+ return nodeModulesRe.test(mid);
}
}
};