DEV Community

DeepJoyPo
DeepJoyPo

Posted on

How to create worker_thread to run ES script

All my files is written in ES. But when I run, new Worker('test.ts'), I got cannot import out of module.
I know web worker can set options to {type: 'module'} to run ES code. How we can do it on worker_thread?

Top comments (0)