-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the worker is located on a path inaccessible to the bundle #51
Comments
with your current configuration the worker gets embedded in the index file as a base64 string so there is no need for a standalone worker file. If you want to output an explicit worker file, use the ...
[
...
webWorkerLoader({ inline: false }).
...
]
... as for the warning, I assume that your worker source file is in the import WebWorker from 'web-worker:./worker/Worker.ts'; |
@darionco thank you for quick answer and for a little misunderstanding, I am trying to build a project from your example https://github.com/darionco/rollup-typescript-webworkers and get current warning and build structure So, yes worker exist in right path. How do js resolve |
I am not sure I understand the question, I'll try to explain how the plugin works by default.:
by following those steps, the If what you want is for the worker file to not be embedded into the main JavaScript file, that can be done using the option I suggested above: ...
[
...
webWorkerLoader({ inline: false }).
...
]
... Otherwise you could look into using Let me know if that helps. |
I am a bit confused about building the project from ts example https://github.com/darionco/rollup-typescript-webworkers. how do the bundle will link to the worker if it is located on an inaccessible path and only
dist/**
send into the published packagecould you clarify that and give an example of rollup config
I've expected similar structure after bundle
with current plugins section
I get warning
The text was updated successfully, but these errors were encountered: