Change how lodash-modularie build path is resolved.

This commit is contained in:
John-David Dalton
2013-09-02 00:50:07 -05:00
parent c8a4e40bcf
commit cd808fb5a5
3 changed files with 20 additions and 22 deletions

View File

@@ -49,11 +49,11 @@
case 'lodash-modern': result = 'dist/lodash.min.js'; break;
case 'lodash-legacy': result = 'dist/lodash.legacy.min.js'; break;
case 'lodash-mobile': result = 'dist/lodash.mobile.min.js'; break;
case 'lodash-modularize': result = 'modularize/lodash.js'; break;
case 'lodash-underscore': result = 'dist/lodash.underscore.min.js'; break;
case 'lodash-custom-dev': result = 'lodash.custom.js'; break;
case 'lodash-custom': result = 'lodash.custom.min.js'; break;
case 'lodash-compat-dev':
case 'lodash-modularize':
case undefined: result = 'lodash.js'; break;
default: return build;
}
@@ -73,6 +73,9 @@
return basePath + result;
}());
// used to indicate testing a modularized build
ui.isModularize = /\b(?:lodash-(?:amd|node)|modularize)\b/.test(ui.buildPath);
// initialize controls
addListener(window, 'load', function() {
function eventHandler(event) {