ES modules in service workers
CRANK

Service workers can use static imports of ES modules to bring in extra code, as an alternative to importScripts().

web.dev
Related Topics: Progressive Web Apps JavaScript
2 comments
  • Service Worker コンテキストの JavaScript で ES Modules が動作する。静的な import 構文がサポートされており、動的な import() 関数も将来的にサポートされる。importScript() 関数を使うケースはなくなりそう。