Baixing.com Technical Team
Oct 23, 2017 · Frontend Development
Build a TypeScript Custom Transformer for On‑Demand Ant Design Imports
This article explains how to use TypeScript's custom transformation feature to rewrite import statements like "import { Button } from 'antd'" into per‑component imports, reducing bundle size, and walks through the required AST manipulation, visitor logic, and integration with ts‑loader.
ASTCustom TransformerImport Optimization
0 likes · 10 min read
