ant-design/components/_util
Karott 338ec7dad7
perf: refactor devWarning for production code size (#35411)
* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
..
__tests__ perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00
hooks refactor: rm useDestroy hook (#34418) 2022-03-10 18:54:32 +08:00
ActionButton.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
colors.ts chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
easings.ts chore: fix some eslint problems (#24836) 2020-06-08 18:01:50 +08:00
getDataOrAriaProps.ts refactor: replace deprecated String.prototype.substr() (#34498) 2022-03-15 10:41:12 +08:00
getRenderPropValue.ts chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
getScroll.tsx fix: error when target not an html element (#29523) 2021-02-26 18:43:15 +08:00
isNumeric.ts chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 (#28253) 2020-12-09 17:12:32 +08:00
motion.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
placements.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
raf.ts chore: replace raf with rc-util/lib/raf (#27864) 2020-11-20 12:11:50 +08:00
reactNode.ts refactor: UploadList use rc-motion instead of rc-animate (#27923) 2020-11-21 19:00:11 +08:00
responsiveObserve.ts refactor(responsive-observe): improve typescript type (#27305) 2020-10-23 10:57:13 +08:00
scrollTo.ts chore: replace raf with rc-util/lib/raf (#27864) 2020-11-20 12:11:50 +08:00
statusUtils.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
styleChecker.tsx chore: Mv style to rc-util (#32177) 2021-09-15 14:13:32 +08:00
throttleByAnimationFrame.tsx fix: set requestId to null after fn was cancelled (#34858) 2022-04-05 13:01:18 +08:00
transButton.tsx chore: add prettier-plugin-jsdoc (#28551) 2020-12-28 15:30:18 +08:00
type.ts chore(all): delete useless Omit define (#31661) 2021-08-04 20:07:28 +08:00
warning.ts perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00
wave.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00