Since Angular 8, you can now generate web worker to your app from the CLI. I did so exactly like the official guide:
https://angular.io/guide/web-worker
And it works perfectly.
But as soon as I try to import any module to the top of app.worker.ts with:
import { MyData } from '../shared/shared.module';
Is there any other way to import modules into web workers?
