Question: I'm writing a Backbone application and as I'm reading the documentation online, what I understand is that Backbone's only hard dependency is Underscore. However, I'd like to use Lodash instead of Underscore. Can someone provide steps as to how I can do this?

Answer: 
If you are using Browserify, check out [Browserify Swap](https://www.npmjs.com/package/browserify-swap) or [Aliasify](https://www.npmjs.com/package/aliasify)

Personally I use Browserify Swap. Example package.json usage:

```
  "browserify": {
    "transform": [
      "browserify-swap"
    ]
  },
  "browserify-swap": {
    "@packages": [
      "underscore"
    ],
    "all": {
      "underscore.js$": "lodash"
    }
  }

```
Up to version 2.4.1, lodash published a "Underscore compatible" version.

<https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.underscore.js>

You can use that as a drop-in replacement.

As of 3.0, they removed this build.

> 
> Removed the underscore build
> 
> 
> 

<https://github.com/lodash/lodash/wiki/Changelog>