make ui.isModularize set to true if coming from lodash-es6.

This commit is contained in:
John-David Dalton
2014-06-15 14:24:37 -07:00
parent e884916275
commit 5d3a9d817a
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@
ui.isForeign = RegExp('^(\\w+:)?//').test(build);
// used to indicate testing a modularized build
ui.isModularize = /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|node)|modularize|npm)\b/.test([location.pathname, location.search]);
ui.isModularize = /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|es6|node)|modularize|npm)\b/.test([location.pathname, location.search]);
// used to indicate testing in Sauce Labs' automated test cloud
ui.isSauceLabs = location.port == '9001';

View File

@@ -67,7 +67,7 @@
var ui = root.ui || (root.ui = {
'buildPath': filePath,
'loaderPath': '',
'isModularize': /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|node)|modularize|npm)\b/.test(filePath),
'isModularize': /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|es6|node)|modularize|npm)\b/.test(filePath),
'urlParams': {}
});