From c6b1b47956cbc2d15c0665adf6f45ca3dda96405 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Thu, 29 Oct 2026 14:48:31 +0100 Subject: [PATCH 1/2] perf: minify the shipped CSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit esm/index.css and cjs/index.css shrink from 903 KB to 741 KB. 🤖 Generated with Claude Code --- rollup.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rollup.config.js b/rollup.config.js index a2c0ee6d..4535deb7 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -50,6 +50,7 @@ export default { }), styles({ mode: ['extract', 'index.css'], + minimize: true, // Keeps url('#linearGradient-1') of antd's Empty instead of emitting it as an asset url: false, less: { From 1068e2fbc89ee68b4e30ab75e0947edcd84312f9 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Thu, 29 Oct 2026 15:35:01 +0100 Subject: [PATCH 2/2] perf: drop the unprefixed antd styles of Grid and DatePicker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Their per-component style imports compiled without the mll-ant prefix and added a second, unprefixed copy of the base, grid, button, tag and date-picker styles that no component renders. src/antd.less already covers them with the prefix. esm/index.css, minified: 740,843 → 590,687 bytes, gzip 85.0 → 68.8 KB. 🤖 Generated with Claude Code --- src/DatePicker/index.tsx | 1 - src/Grid/index.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/DatePicker/index.tsx b/src/DatePicker/index.tsx index 850243de..d2f2a132 100644 --- a/src/DatePicker/index.tsx +++ b/src/DatePicker/index.tsx @@ -5,7 +5,6 @@ import generatePicker, { PickerTimeProps as AntdPickerTimeProps, RangePickerProps as AntdRangePickerProps, } from 'antd/es/date-picker/generatePicker'; -import 'antd/es/date-picker/style/index'; import { format as formatDate, parse as parseDate, diff --git a/src/Grid/index.tsx b/src/Grid/index.tsx index 8ec5d69a..96174b59 100644 --- a/src/Grid/index.tsx +++ b/src/Grid/index.tsx @@ -1,3 +1 @@ -import 'antd/es/grid/style/index'; - export { Row, Col, RowProps } from 'antd';