encountering issues with lazyloading webworker code

I have 4 JS files(one.js, two.js, three.js and four.js). One.js imports two.js, two.js imports three.js and three.js import four.js using importScripts as a webworker code. How do I lazyload these files to retain the webworker functionality.

I am facing importScripts is not defined error, when I try to achieve the same and in this case should I lazyload all the files?