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
This discussion was converted from issue #9568 on March 06, 2025 14:12.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
I'm trying to migrate webpack to rspack in NativeScript, I have most of the features working but the workers don't work.
The problem is that my target is Node but in NativeScript we don't have the node modules like in this case
url
Worker definition:
In the build I have this:
In my runtime.js I have this and this is the problem:
Since the url module is not available in NS, the application does not start and I get the error.
My question is: how can I configure rspack so that it does not use
require("url")
when creating a worker using the node target?.As a note: I should mention that in NS we do have the URL object available, I mention it in case it can help here in some way.
Beta Was this translation helpful? Give feedback.
All reactions