Add "browser" field for Browserify

Browserify and other CJS builders will look for a "browser" field to use as an alternate "main" when targeting the browser environment.

https://github.com/substack/node-browserify#packagejson

Pointing it to the compat build would prevent issues like #288 happening out of the box, without any extra configuration.
This commit is contained in:
Alexander Early
2014-01-29 13:33:50 -08:00
parent dadde52c40
commit 8a908b720f

View File

@@ -60,5 +60,6 @@
"test",
"vendor"
]
}
},
"browser": "dist/lodash.compat.js"
}