1.0.2 • Published 4 years ago
babel-plugin-icon v1.0.2
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} />;
};