From 080b761f7fcd83661fdc555228060effe89b16e8 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 14 Apr 2016 08:37:19 -0700 Subject: [PATCH] Update export doc note. [ci skip] --- lodash.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index fb1e8673e..3dadab633 100644 --- a/lodash.js +++ b/lodash.js @@ -15997,9 +15997,11 @@ // Export lodash. var _ = runInContext(); - // Expose lodash on the free variable `window` or `self` when available. This - // prevents errors in cases where lodash is loaded by a script tag in the presence - // of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch for more details. + // Expose Lodash on the free variable `window` or `self` when available so it's + // globally accessible, even when bundled with Browserify, Webpack, etc. This + // also prevents errors in cases where Lodash is loaded by a script tag in the + // presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch + // for more details. Use `_.noConflict` to remove Lodash from the global object. (freeWindow || freeSelf || {})._ = _; // Some AMD build optimizers like r.js check for condition patterns like the following: