4.17001.1002 • Published 7 years ago

mini-lodash-004-pmb v4.17001.1002

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

mini-lodash-004-pmb

lodash v4.17.1, minified, on npm. Includes a housebroken AMD version.

Generated using mini-lodash-bundler-pmb.

Versioning scheme:

  semver:   major   .  minor   .  patch
  lodash:      LLL  .  MMM     .  PPP       = 4.17.1
 bundler:   aaa     .     nnn  .     qqq    = 0.1.2
  mini-…:   aaaLLL  .  MMMnnn  .  PPPqqq    = 4.17001.1002

Files:

  • {core,full}._.min.js are the official builds, downloaded from the CDN.
    • Named "_" because they use quite intrusive measures to find your global object and set that property, even when they successfully detect your AMD loader and define() to it.
  • compile.cjs.min.js CommonJS-exports a function that compiles a full lodash and won't pollute my browser's window object.
  • full.anon.amd.js anonymously define()s a factory function that returns one (always same) full lodash.
  • full.lodash.umd.js: like full.anon.amd.js but use module name "lodash" for AMD.
    • Also tries to CommonJS-export it.
    • If window looks browser-y, additionally sets window.lodash
      • if window.lodash === undefined and neither AMD nor CommonJS were detected, or
      • if CommonJS was detected and window.lodash === the old/original exports object, or
      • if AMD was detected and window.lodash === the define() function.

Known issues

  • curl-amd@0.8.13 seems to not support explicit module names when it has to dynamically fetch the file. ("Error: define() missing or duplicated: …") You can either use the anon.amd flavor if you want curl to fetch it, or load the umd flavor with a plain old script tag.

License

MIT; see https://lodash.com/ and LICENSE.txt.