Replies: 1 comment
-
|
I use Read more: #491 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm making my first experiences with NodeJS worker threads and ran into something that makes me wonder if
tsdown(or Rolldown) needs to address this. It should be noted that I did not find anything for other bundlers. But let me describe my problem first:This works fine before bundling, since
worker.tsis a file in my source folder. However, once bundled, this file will be namedworker.mjs– I will run into a "file not found" error at runtime.I can imagine employing a couple of workarounds for this:
.mjsin the source@rollup/plugin-replacecreate a barrel.mjsfile that imports.tsWhat's your opinion on this? Do you feel this is something that should be handled by a bundler? If so, is this the right repository to bring this up or should it be escalated to Rolldown?
Beta Was this translation helpful? Give feedback.
All reactions