Skip to content

Worker Threads flag (node v10.5+) #676

@alexcastillo

Description

@alexcastillo

Hi,

Thanks for all the work you've done with ts-node!

I'm currently trying to pass the --experimental-worker flag for Worker Threads support but it doesn't seem to be respecting the flag.

I've tried:

  • ts-node ./file.ts --experimental-worker
  • node --experimental-worker --require ts-node/register ./file.ts

And I get the following error:

  • error TS2307: Cannot find module 'worker_threads'.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions