mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Update umd doc note. [ci skip]
This commit is contained in:
14
lodash.js
14
lodash.js
@@ -16390,14 +16390,14 @@
|
|||||||
// Export lodash.
|
// Export lodash.
|
||||||
var _ = runInContext();
|
var _ = runInContext();
|
||||||
|
|
||||||
// Expose Lodash on the free variable `window` or `self` when available so it's
|
// Expose Lodash on the free variable `self` so it's globally accessible,
|
||||||
// globally accessible, even when bundled with Browserify, Webpack, etc. This
|
// even when bundled with Browserify, Webpack, etc. This also prevents errors
|
||||||
// also prevents errors in cases where Lodash is loaded by a script tag in the
|
// when Lodash is loaded by a script tag in the presence of an AMD loader.
|
||||||
// presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch
|
// See http://requirejs.org/docs/errors.html#mismatch for more details.
|
||||||
// for more details. Use `_.noConflict` to remove Lodash from the global object.
|
// Use `_.noConflict` to remove Lodash from the global object.
|
||||||
(freeSelf || {})._ = _;
|
(freeSelf || {})._ = _;
|
||||||
|
|
||||||
// Some AMD build optimizers like r.js check for condition patterns like the following:
|
// Some AMD build optimizers, like r.js, check for condition patterns like:
|
||||||
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
|
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
|
||||||
// Define as an anonymous module so, through path mapping, it can be
|
// Define as an anonymous module so, through path mapping, it can be
|
||||||
// referenced as the "underscore" module.
|
// referenced as the "underscore" module.
|
||||||
@@ -16405,7 +16405,7 @@
|
|||||||
return _;
|
return _;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Check for `exports` after `define` in case a build optimizer adds an `exports` object.
|
// Check for `exports` after `define` in case a build optimizer adds it.
|
||||||
else if (freeModule) {
|
else if (freeModule) {
|
||||||
// Export for Node.js.
|
// Export for Node.js.
|
||||||
(freeModule.exports = _)._ = _;
|
(freeModule.exports = _)._ = _;
|
||||||
|
|||||||
Reference in New Issue
Block a user