From 57de1a047d783bbdc12a6f4e348007d4a83f4bd4 Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Wed, 9 Aug 2023 12:05:26 +0200 Subject: [PATCH] fix: removed lucide aliases https://github.com/lucide-icons/lucide/pull/1486 Lucide is now having a file for every alias that just contains `export {default} from "./icon-name"`. --- packages/next/src/server/config.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index 52b82bec48760..f7d1b427a0f75 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -684,35 +684,6 @@ function assignDefaults( // instead of just resolving `lucide-react/esm/icons/{{kebabCase member}}` because this package // doesn't have proper `exports` fields for individual icons in its package.json. transform: { - // Special aliases - '(SortAsc|LucideSortAsc|SortAscIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/arrow-up-narrow-wide!lucide-react', - '(SortDesc|LucideSortDesc|SortDescIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/arrow-down-wide-narrow!lucide-react', - '(Verified|LucideVerified|VerifiedIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/badge-check!lucide-react', - '(Slash|LucideSlash|SlashIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/ban!lucide-react', - '(CurlyBraces|LucideCurlyBraces|CurlyBracesIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/braces!lucide-react', - '(CircleSlashed|LucideCircleSlashed|CircleSlashedIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/circle-slash-2!lucide-react', - '(SquareGantt|LucideSquareGantt|SquareGanttIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/gantt-chart-square!lucide-react', - '(SquareKanbanDashed|LucideSquareKanbanDashed|SquareKanbanDashedIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/kanban-square-dashed!lucide-react', - '(SquareKanban|LucideSquareKanban|SquareKanbanIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/kanban-square!lucide-react', - '(Edit3|LucideEdit3|Edit3Icon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/pen-line!lucide-react', - '(Edit|LucideEdit|EditIcon|PenBox|LucidePenBox|PenBoxIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/pen-square!lucide-react', - '(Edit2|LucideEdit2|Edit2Icon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/pen!lucide-react', - '(Stars|LucideStars|StarsIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/sparkles!lucide-react', - '(TextSelection|LucideTextSelection|TextSelectionIcon)': - 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/text-select!lucide-react', // General rules 'Lucide(.*)': 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/{{ kebabCase memberMatches.[1] }}!lucide-react',