Replies: 1 comment 1 reply
-
you can get rspack instance and set rspack configuration in tools.rspack. |
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
-
Hello
I'm in progress of migrating an "old" monorepo based on Craco v7 to rsbuild.
I was able to resolve most issues myself but there is one that I'm not able to solve without refactoring the code of almost all modules of the monorepo.
As the title suggest, I have a common component that relies on jQuery:
https://github.com/skratchdot/react-bootstrap-daterangepicker/tree/4.1.0
Best solution would obviously be to use something else, but reality is that it's used in a lot of place and I'd rather make rsbuild work with it right now than wait for all modules to move away from it.
Does someone have any idea how to make rsbuild play nice with it ?
here is my error coming from this component: this.$picker.daterangepicker is not a function
What I've tried:
I also saw this from the rspack doc: https://rspack.dev/plugins/webpack/provide-plugin#jquery
But I don't know how to use
new rspack.ProvidePlugin
in rsbuild config nor if it would helpI will be thankful for any help, I would be very sad to be forced to hold the migration because of jquery dependency 😞
Beta Was this translation helpful? Give feedback.
All reactions