I have a project A using antd library (like a wrapper for every components of antd). So in order for A to work, I use babel-plugin-import to import the style. So far it works correctly when running A.
However, lets say if I wanna package the project A to become like a npm package, then use it in another project B.
In project B when running, I need to import babel config for antd again in project B so that it will add the antd style.
Is there anyway that project A will auto add the required style to the build package. So that in project B I don't need to add the babel config for antd again
I have a project A using antd library (like a wrapper for every components of antd). So in order for A to work, I use babel-plugin-import to import the style. So far it works correctly when running A.
However, lets say if I wanna package the project A to become like a npm package, then use it in another project B.
In project B when running, I need to import babel config for antd again in project B so that it will add the antd style.
Is there anyway that project A will auto add the required style to the build package. So that in project B I don't need to add the babel config for antd again
project A babel.config.js
project B babel.config.js