Skip to content

Conversation

@RitvikSardana
Copy link
Member

@RitvikSardana RitvikSardana commented Nov 6, 2025

This PR introduces Tree shaking in frappe-ui by using subpath exports.

Now we have sub paths like

/frappe

import { useOnboarding } from "frappe-ui/frappe";

/icons

import { HelpIcon } from "frappe-ui/icons";
image

Important

BREAKING CHANGE
Removed usage of Icons like import HelpIcon from "frappe-ui/frappe/Icons/HelpIcon.vue";
Removed importing components via nested paths like this import Badge from "frappe-ui/src/components/Badge/Badge.vue"

Migration guide:
To incorporate new changes into your app, read this migration guide.

Before:
image

After:
image

@RitvikSardana RitvikSardana merged commit 9fb278b into frappe:main Nov 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants