Skip to content

Commit 7986506

Browse files
author
Net Gusto
committed
lodash.js made webpack compatible
Avoiding the warning: ``` WARNING in ./~/graphlib/lib/lodash.js Critical dependencies: 5:3-10 require function is used in a way, in which dependencies cannot be statically extracted `` ` thrown by webpack.
1 parent cbf5e07 commit 7986506

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/lodash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var lodash;
44

5-
if (require) {
5+
if (typeof require === 'function') {
66
try {
77
lodash = require("lodash");
88
} catch (e) {}

0 commit comments

Comments
 (0)