From 8a908b720f1eae33493cc2e0699242eb23e094f2 Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Wed, 29 Jan 2014 13:33:50 -0800 Subject: [PATCH] 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. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 228e51e50..7f379b9e0 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,6 @@ "test", "vendor" ] - } + }, + "browser": "dist/lodash.compat.js" }