question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for remotely-hosted workerHelper script?

See original GitHub issue

I’ve just published this and as shown in the readme I’ve uploaded it here:

https://deno.land/x/wasm_image_decoder@v0.0.1

But when trying to use it I get an error because the worker script is hosted on the deno.land origin rather than on the origin on which the module is being used.

I think this might be a relatively easy fix. It would just require changing this:

const worker = new Worker(import.meta.url, {
  type: 'module'
});

to this:

let scriptBlob = await fetch(import.meta.url).then(r => r.blob());
const worker = new Worker(URL.createObjectURL(scriptBlob), {
  type: 'module'
});

I edited workerHelpers.no-bundler.js with the above change and it works fine.

Can you foresee any problems with this change? And if not, would you accept a PR for this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RReversercommented, Apr 26, 2021

I’ve reopened this issue and updated your PR’s description instead.

1reaction
RReversercommented, Apr 26, 2021

I’ll just mention since you said you’re not familiar with Github’s review process - FWIW it’s best not to close issues on Github before they’re implemented (or deemed unnecessary). If you’re resolving issue in a PR, then you just need to say Closes #1234 in a commit message and Github will auto-close it when PR is merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remotely Hosted PHP Scripts | PHPJabbers
A perfect solution for anyone who wants to use our scripts, but doesn't want or cannot install them on their own hosting account....
Read more >
Execute scripts remotely - TeamViewer Support
Open the scripts menu. Windows: Go to Actions > Scripts in the remote control toolbar to open the menu. · Select a script...
Read more >
Remotely, a free open source Remote Support Alternative to ...
Remotely is a truely free (as in Libre) , truely open source GPS 3.0, Self-hosable Remote Desktop Support software. That's right!
Read more >
Connect and work with JetBrains Gateway | IntelliJ IDEA ...
The main script to run a remote IDE is remote-dev-server.sh , located in the bin subdirectory of your unpacked IDE. note. In case...
Read more >
Remote Development FAQ - Visual Studio Code
Visual Studio Code Remote Development Frequently Asked Questions (FAQ) for SSH, Containers, and WSL.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found