Skip to content

Commit 7d34bd5

Browse files
authored
Merge pull request #23 from andfaulkner/patch-1
Fix Webpack's misused require function error
2 parents 4954cf1 + ad8bd24 commit 7d34bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moment-precise-range.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (typeof moment === "undefined" && require) {
1+
if (typeof moment === "undefined" && typeof require === 'function') {
22
moment = require('moment');
33
}
44

0 commit comments

Comments
 (0)