Skip to content

Commit 06a408f

Browse files
authored
remove raf (#105)
1 parent d37597d commit 06a408f

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ build
2626
lib
2727
coverage
2828
yarn.lock
29+
package-lock.json
2930
/es/
31+
.vscode

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@
5656
"lint"
5757
],
5858
"dependencies": {
59-
"classnames": "^2.2.6",
6059
"@ant-design/css-animation": "^1.7.2",
61-
"raf": "^3.4.0",
62-
"rc-util": "^4.15.3"
60+
"classnames": "^2.2.6",
61+
"rc-util": "^5.1.0"
6362
},
6463
"peerDependencies": {
6564
"react": ">=16.9.0",

src/CSSMotion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react';
33
import findDOMNode from 'rc-util/lib/Dom/findDOMNode';
44
import classNames from 'classnames';
5-
import raf from 'raf';
5+
import raf from 'rc-util/lib/raf';
66
import {
77
getTransitionName,
88
animationEndName,

tests/CSSMotion.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import classNames from 'classnames';
55
import TestUtils from 'react-dom/test-utils';
66
import expect from 'expect.js';
77
import $ from 'jquery';
8-
import raf from 'raf';
8+
import raf from 'rc-util/lib/raf';
99
import RefCSSMotion, { genCSSMotion } from '../src/CSSMotion';
1010

1111
import './CSSMotion.spec.css';

0 commit comments

Comments
 (0)