Skip to content

Commit

Permalink
Merge pull request #100 from lencioni/lodash
Browse files Browse the repository at this point in the history
Replace lodash per-method packages with scoped imports
  • Loading branch information
loktar00 authored Jul 15, 2022
2 parents 80a723c + 49b3e76 commit 392ef54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
},
"dependencies": {
"eventlistener": "0.0.1",
"lodash.debounce": "^4.0.0",
"lodash.throttle": "^4.0.0",
"lodash": "^4.0.0",
"prop-types": "^15.5.8"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/LazyLoad.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { Children, Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import { add, remove } from 'eventlistener';
import debounce from 'lodash.debounce';
import throttle from 'lodash.throttle';
import debounce from 'lodash/debounce';
import throttle from 'lodash/throttle';
import parentScroll from './utils/parentScroll';
import inViewport from './utils/inViewport';

Expand Down

0 comments on commit 392ef54

Please sign in to comment.