This is a 1.1kb polyfill for Module Workers.
It adds support for new Worker('..',{type:'module'}) to all modern browsers (those that support fetch).
Copy module-workers-polyfill.js to your web directory, then load it using an import or a script tag.
It just needs to be loaded before instantiating your Worker.