Path aliases replacement on transform #7779
Replies: 1 comment 1 reply
-
Use |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone !
I have an issue regarding the usage of path aliases with SWC.
Context
In my project, I am importing some libs from the folder node_modules like
import('rematrix')
.I am trying to use the JS api of SWC & transformSync() to transform this JS into that for example:
Note that I added the path alias to the transformSync option.
But nothing is working, I still have
import('rematrix')
in the output of the transformation.Thanks for your help !
Beta Was this translation helpful? Give feedback.
All reactions