JeffersonLab / jaws-admin-gui

Web admin interface for JAWS
https://ace.jlab.org/jaws
MIT License
0 stars 0 forks source link

Firefox doesn't support ES6 Modules in Web Worker #17

Closed slominskir closed 2 years ago

slominskir commented 2 years ago

Right now the admin GUI doesn't work on Firefox. Need to figure out workaround.

https://bugzilla.mozilla.org/show_bug.cgi?id=1247687

https://caniuse.com/mdn-api_worker_worker_ecmascript_modules

slominskir commented 2 years ago

Here's the plan: feature detect module support in web workers and then provide browsers that don't support it a bundled version of web worker that contains all code that would otherwise be imported in the module version. This means we end up with two versions of worker:

This means we'll need webpack or equivalent during build to prepare compatibility file.