mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
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:
@@ -60,5 +60,6 @@
|
||||
"test",
|
||||
"vendor"
|
||||
]
|
||||
}
|
||||
},
|
||||
"browser": "dist/lodash.compat.js"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user