How can I use customName as a function in transformImport? #3747
Unanswered
khangviet1996
asked this question in
Q&A
Replies: 1 comment 1 reply
-
For performance reasons, Rspack does not support customName function, see #3696 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After migrating my large CRA project to rsbuild, I noticed significant reductions in both build time and development time. However, there's a project issue I’d like to resolve.
In my project, We're using a barrel file to import common components, as shown here:
import { Form, FormAddButton } from 'common/components';
I want to convert it to individual imports, like:
import FormAddButton from 'common/components/button/FormAddButton';
I tried using this configuration to achieve that:
Is there a way to make customName function-based? That would make it much more flexible! Like this!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions