You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to migrate my existing bundler from webpack to rspack and I'm facing a blocking issue.
I'm using dynamic imports with path computed from string template containing a string substituted value (by DefinePlugin) where value is an absolute path as exemple below:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to migrate my existing bundler from webpack to rspack and I'm facing a blocking issue.
I'm using dynamic imports with path computed from string template containing a string substituted value (by
DefinePlugin
) where value is an absolute path as exemple below:with
webpackCustomFolder
set in config bynew DefinePlugin({ webpackCustomFolder: JSON.stringify("/tmp/abc") })
Compilation crashes with error:
As you can see, javascript is invalid because of this string added before my import path
"./"
.Of course, hardcoding
/tmp/abc
in my typescript code works successfully.Could someone help me to understand where this string is coming from, or how could i debug rspack to understand import rewrite?
Thank you all :slight_smile:
Beta Was this translation helpful? Give feedback.
All reactions