mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +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",
|
"test",
|
||||||
"vendor"
|
"vendor"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"browser": "dist/lodash.compat.js"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user