Isak
Isak
Explore posts from servers
CDCloudflare Developers
Created by Isak on 9/14/2024 in #workers-help
RPC not working with getters
The error says that bar is not a function. I'm looking to call WORKER.foo.bar() instead of WORKER.foo().bar().
class Foo extends RpcTarget {
bar() {
return "baz"
}
}

class WorkerEntrypoint {
get foo() {
return new Foo()
}
}
class Foo extends RpcTarget {
bar() {
return "baz"
}
}

class WorkerEntrypoint {
get foo() {
return new Foo()
}
}
1 replies
CDCloudflare Developers
Created by Isak on 7/24/2023 in #workers-help
Glob import files
Is it possible to glob import files in a Worker? Like the import.meta.glob function available in Vite. The glob package on npm did not work because some Node stuff was missing. Thanks!
2 replies