mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
make ui.isModularize set to true if coming from lodash-es6.
This commit is contained in:
@@ -132,7 +132,7 @@
|
|||||||
ui.isForeign = RegExp('^(\\w+:)?//').test(build);
|
ui.isForeign = RegExp('^(\\w+:)?//').test(build);
|
||||||
|
|
||||||
// used to indicate testing a modularized 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
|
// used to indicate testing in Sauce Labs' automated test cloud
|
||||||
ui.isSauceLabs = location.port == '9001';
|
ui.isSauceLabs = location.port == '9001';
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
var ui = root.ui || (root.ui = {
|
var ui = root.ui || (root.ui = {
|
||||||
'buildPath': filePath,
|
'buildPath': filePath,
|
||||||
'loaderPath': '',
|
'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': {}
|
'urlParams': {}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user