Replies: 3 comments 2 replies
-
Hello! For now SWC doesn't support much babel plugins. |
Beta Was this translation helpful? Give feedback.
-
@iKonrad You could give swc-plugin-transform-imports a try |
Beta Was this translation helpful? Give feedback.
-
Hi @raldred I am trying to implement swc-plugin-transform-import but it does'nt seem to be called at all. I updated the webpack rule for 'next-swc-loader'. If I try to also use 'swc-loader' it just seems incompatible with SSR.. is there a correct way to do this?
|
Beta Was this translation helpful? Give feedback.
-
I'm using this library:
https://www.npmjs.com/package/babel-plugin-transform-imports
which transforms imports like:
import { Something } from 'my-lib';
into
import Something from 'my-lib/dist/Something;'
;Is there an equivalent to transform named imports into default ones in SWC?
Beta Was this translation helpful? Give feedback.
All reactions