The pattern for a script used by a webworker https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers is:
webworker.jsimportScripts('./parent.js')parent.jsimport { PerfManager} from "./child.js";
The child.js import results in:
Uncaught SyntaxError: Cannot use import statement outside a module
Is there any way to implement an import within the parent.js when used by webworker.js ?