ant-design/components/typography
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__ chore: update snapshot due to rc-trigger bumped (#35106) 2022-04-20 00:16:39 +08:00
Base chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
demo docs: simplify demo code, #30853 (#35050) 2022-04-15 16:20:56 +08:00
hooks fix: Typography error on context ellipsis (#33725) 2022-01-18 14:13:41 +08:00
style fix(Typography): change less function to less variable in danger style (#35113) 2022-04-20 12:00:16 +08:00
Editable.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
index.en-US.md feat: Typography.Text Pass event to onCopy. (#34655) 2022-03-22 16:52:44 +08:00
index.tsx feat: Add Link component to prepare for rm global style (#24019) 2020-05-11 14:28:57 +08:00
index.zh-CN.md feat: Typography.Text Pass event to onCopy. (#34655) 2022-03-22 16:52:44 +08:00
Link.tsx perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00
Paragraph.tsx chore: eslint add consistent-type-imports (#35419) 2022-05-07 14:31:54 +08:00
Text.tsx perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00
Title.tsx perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00
Typography.tsx perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00