BlockzillaB
Denoβ€’4y agoβ€’
2 replies
Blockzilla

Possible to check of a file is being run as worker?

if (import.meta.main) {
  main()
}

is there a way to disable calling main() if the file is being run as worker
Was this page helpful?