umijs / babel-plugin-import

Modularly import plugin for babel.
3.16k stars 404 forks source link

HELP!!! how i can use this in rollup!!! #616

Open qmy777 opened 2 years ago

qmy777 commented 2 years ago

I use antd + rollup to create the business component. but when i use import to resolve the style of antd component, there have a problem: the style is not working!

my .babel is below:

image

my rollup.config.js is below:

image

At first, i think is postcss to change antd style. But I check the postcss file stream, there is no antd style files. So I don't kown why, and want to kown how to resolve antd style import with rollup!

Thanks a lot! I have already search everything in google, and there has nothing...