Replies: 5 comments
-
Another thing I've noticed is that there appears to be support for importing Also consider that some people may not want to have HTTP imports. if (process.execArgv.includes("--experimental-network-imports") {
applyCustomHTTPLoader(); // Or whatever...
} Thoughts? 🤔 |
Beta Was this translation helpful? Give feedback.
-
The hole reason i wanted to have custom experimental loaders where not particularly import so the idea was to do something like: const blob = new Blob([`
import fs from 'node:fs'
fs.writeFileSync(...)
`], { type: 'text/javascript' })
const url = URL.createObjectURL(blob)
import(url) But sure this could maybe be an option for this. |
Beta Was this translation helpful? Give feedback.
-
There are some thing that NodeJS is working on about implementing there are issues here as well:
but we could implement whatever we feel like a web worker should actually have |
Beta Was this translation helpful? Give feedback.
-
I just realized Discussions were enabled on this repo. 🤦♂️ If you could, would move this issue to a Discussion pls to satisfy my brain 🧠🙏 |
Beta Was this translation helpful? Give feedback.
-
I just tough that i do not particularly want to ship just about everything that should exist inside a Web Worker. cuz if it where then i would just probably just change await-sync to just inline some functionality and work with different code paths to deal with things if they are either NodeJS or running inside of a browser or deno. i would kind of like it if there where a way to add optional dependencies to the library. and that we tried to load |
Beta Was this translation helpful? Give feedback.
-
There's other stuff that is specified in the https://html.spec.whatwg.org/multipage/workers.html page relating to how the
Worker
interface works. For instance, there's aWorkerNavigator
andWorkerLocation
. I assume these are out-of-scope, but I just want to confirm? There's also theonoffline
,onlanguagechange
, andononline
events.Beta Was this translation helpful? Give feedback.
All reactions