[Help] How to minimize dependent libraries

I’m trying to add hilla to an existing project. for some reason I need to remove all the front-end components @vaadin/react-components that come with hilla. How should i exclude the dependencies.
I have now configured maven’s

         <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-spring-boot-starter</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.vaadin</groupId>
                    <artifactId>vaadin-lumo-theme</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.vaadin</groupId>
                    <artifactId>vaadin-material-theme</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.vaadin</groupId>
                    <artifactId>vaadin-core-components</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.vaadin</groupId>
                    <artifactId>vaadin-core-internal</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.vaadin</groupId>
                    <artifactId>copilot</artifactId>
                </exclusion>
                <!--                <exclusion>-->
                <!--                    <groupId>com.vaadin</groupId>-->
                <!--                    <artifactId>vaadin-dev</artifactId>-->
                <!--                </exclusion>-->
            </exclusions>
        </dependency>

Some widgets don’t appear in package.json anymore, but there’s still a hilla-react-crud that can’t be removed, and it has a sub-dependency react-components. How should I configure

┬ @vaadin/hilla-react-crud@24.8.5
└── @vaadin/react-components@24.8.4

Also, I need to use react as a front-end framework

1 Like