-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: ts worker customWorkerPath
error by exporting the TypescriptWorker
class
#3152
Conversation
TypescriptWorker
classcustomWorkerPath
in module workers by exporting the TypescriptWorker
class
customWorkerPath
in module workers by exporting the TypescriptWorker
classcustomWorkerPath
error by exporting the TypescriptWorker
class
@hediet The The problem is that |
@okikio Can you look into why CI fails? |
@hediet For some reason the CI complains that esbuild hasn't been configured for |
The CI on main is green though, thus the failure must be caused by this PR. |
Head branch was pushed to by a user without write access
@hediet I've pushed a change to the |
Do you know why this problem happens here, but not in main? |
I have no idea why it's doing this |
I'm running into a similar issue. My codebase uses a custom TS Worker as well, e.g.:
Which worked on 0.27.0, but fails after upgrading to the latest version |
Any update on this one? |
@camargo Thanks for reminding me, I'll look into this again |
After a bunch of trial and error, I've determined that the cause of this issue is due to the exports being made, but I can't determine why the extra exports are causing the smoketests to fail |
@camargo I'll need some help here as I'm unable to debug why the playwright tests keep crashing when I export functions that aren't |
@camargo The pr itself is working, it's the test that's broken and I can't figure out how to fix it |
@alexdima Any advice on how to fix the test? |
Getting this merged would be great for our project. Is there any chance of getting this assigned to a monaco milestone? |
Closing in favor of #4035 |
This pr is meant to fix issue #3151 in which the
TypescriptWorker
class isn't exported, reducing the ability for devs to extend monaco in a module worker, asimportScripts
(which thecustomWorkerPath
uses to extend the typescript worker) isn't available for module workers.