Threaded worklets (i.e., AnimationWorklet, AudioWorklet) should load its script as a module script, but in the current implementation, it's loaded as a classic script like workers.
Module script loading was already enabled for main thread worklets (see issue 627945 ). We should be able to reuse most of the codes for threaded worklets.
Comment 1 by nhiroki@chromium.org
, May 30 2017