babel-plugin-icon
v1.0.2
Published
babel plugin for one-icon tree shaking
Downloads
2
Readme
babel plugin for icon tree shaking
import { Icon } from "@ali/icon";
const Component = () => {
return <Icon type="dpicon icon-right-arrow" />;
};
import { Icon } from "@ali/icon";
import { RightArrow } from "@ali/icon/svg";
const Component = () => {
return <Icon type={RightArrow} />;
};