Open MadCcc opened 12 months ago
Currently antd-token-previewer@2.x has been released for a while, from a simple component to a complex one with a lot of demos within, which make this component too large with nearly 400kb after gzip.
antd-token-previewer@2.x
And for other reasons like package name: https://github.com/ant-design/antd-token-previewer/issues/181 , it is needed to split this repo and make theme-editor dependent.
@ant-design/theme-editor
@ant-design/token-previewer
Suspense
React.lazy
Motivation
Currently
antd-token-previewer@2.x
has been released for a while, from a simple component to a complex one with a lot of demos within, which make this component too large with nearly 400kb after gzip.And for other reasons like package name: https://github.com/ant-design/antd-token-previewer/issues/181 , it is needed to split this repo and make theme-editor dependent.
What to do
@ant-design/theme-editor
@ant-design/token-previewer
and possible demo package.Suspense
andReact.lazy
to split demos after bundled.