-
❓QuestionHello everyone, I'm trying to associate my component lib (on Bit.dev) with razzle, but I just can't make it work.
I think that I have a problem with my bundler not liking the import like: import React from "react";
import Button from "@bit/my-repo.button"; // If i comment this line, that works like a charm
class Home extends React.Component {
render() {
return (
<Button variant="secondary" size="lg" margin="right-xs">
Button example
</Button>
);
}
}
export default Home; Does someone make it work ? And explain me how plz |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, I found the root cause of this problem. |
Beta Was this translation helpful? Give feedback.
-
No needs to fork the compiler!
This is a simple example based on the Razzle repo. |
Beta Was this translation helpful? Give feedback.
No needs to fork the compiler!
Just add the following configuration to your
razzle.config.js
file: