mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
use require() to lookup path to lodash, rather than guess (#2558)
fixes #2556 Co-authored-by: Patrick Kettner <patrickkettner@gmail.com>
This commit is contained in:
@@ -145,7 +145,7 @@ if (inBrowser) {
|
||||
|
||||
baseRequireConfig.baseUrl = __dirname + '/../src';
|
||||
baseRequireConfig.paths = {
|
||||
lodash: __dirname + '/../node_modules/lodash/lodash',
|
||||
lodash: require.resolve('lodash'),
|
||||
test: __dirname + '/../feature-detects',
|
||||
lib: __dirname
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user