<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Support import statements in Service Workers in Discussions</title>
    <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/119469#M46767</link>
    <description>&lt;P&gt;Great question. The ability to use ES modules inside Service Workers would definitely make project structure cleaner and easier to maintain, especially for larger applications that rely on modular code. Hopefully Firefox adds this support soon since most modern workflows already rely heavily on ES module architecture.&lt;/P&gt;&lt;P&gt;By the way, while working on different web projects and documentation discussions like this, I often browse resources online. Recently I came across a helpful travel resource for airport transportation like &lt;A href="https://pearsonairportlimotaxiservice.ca/" target="_self"&gt;&lt;STRONG&gt;Pearson Airport limo taxi&lt;/STRONG&gt;&lt;/A&gt;, which made me think how useful modern web technologies are for improving booking systems and online services.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Mar 2026 14:48:37 GMT</pubDate>
    <dc:creator>JohnRoy</dc:creator>
    <dc:date>2026-03-07T14:48:37Z</dc:date>
    <item>
      <title>Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/86124#M32947</link>
      <description>&lt;P&gt;Most major browsers support the use of ECMAScript import statements in the Service Worker by declaring { type: 'module' } when registering the Service Worker script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// in main script
navigator.serviceWorker.register("service-worker.js", {
  type: "module",
})&lt;/LI-CODE&gt;&lt;P&gt;Enables:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// in service-worker.js
import "path/to/this.js"
import { that } from 'path/to/that.js'
import * as theOtherThing from 'path/to/theOtherThing.js'
// ...&lt;/LI-CODE&gt;&lt;P&gt;Unfortunately Firefox does not support this functionality for Service Workers. This was disappointing because I had intended to package my Service Worker code&amp;nbsp;for a notification-based library as ECMA modules.&lt;/P&gt;&lt;P&gt;A similar feature was implemented for Web Workers&amp;nbsp;&lt;A href="https://bugzilla.mozilla.org/show_bug.cgi?id=1247687" target="_blank" rel="noopener"&gt;two years ago&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is FF actively working on this functionality for Service Workers?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 18:37:52 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/86124#M32947</guid>
      <dc:creator>dazy</dc:creator>
      <dc:date>2025-02-11T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/90972#M35321</link>
      <description>&lt;P&gt;Firefox's lack of support for ECMAScript import statements in Service Workers is indeed frustrating, especially since other major browsers have implemented this functionality. Given that Web Workers gained module support two years ago, it's surprising that Service Workers are still left behind. This limitation makes it difficult to maintain clean, modular code, particularly for use cases like notification-based libraries. Firefox should prioritize adding this feature to stay aligned with modern web development practices. If you're developing with Service&amp;nbsp;&lt;A href="http://www.alexandrialimos.com" target="_self"&gt;www.alexandrialimos.com&lt;/A&gt; Workers, consider testing in Chromium-based browsers or checking Mozilla's roadmap for updates.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 17:15:19 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/90972#M35321</guid>
      <dc:creator>stacyjasper</dc:creator>
      <dc:date>2025-03-21T17:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/92865#M36148</link>
      <description>&lt;P&gt;You can use ECMAScript import statements in Service. This allows you to organize your Service Worker code with clean, modular imports. However, Firefox still does not support this feature for Service Workers, which can be limiting if you plan to build complex applications like notification libraries. While Firefox implemented module support for Web Workers some time&amp;nbsp;&lt;A href="https://digitalcrewit.com/" target="_self"&gt;Digital Crew IT&lt;/A&gt; ago, it is unclear how actively they are working on bringing this to Service Workers.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 10:26:26 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/92865#M36148</guid>
      <dc:creator>stacyjasper</dc:creator>
      <dc:date>2025-04-14T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/96528#M37677</link>
      <description>&lt;P&gt;Thanks for the heads-up, Stacy. That’s definitely something to keep in mind, especially for those of us building more dynamic features into web apps. I'm currently working on a PWA for a&amp;nbsp;&lt;SPAN&gt;san diego car service&lt;/SPAN&gt;&amp;nbsp;and modular Service Worker support would make organizing notification logic a lot easier. Hopefully, Firefox adds full support soon it’d really help streamline development across all browsers.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 12:23:12 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/96528#M37677</guid>
      <dc:creator>halexalexe</dc:creator>
      <dc:date>2025-05-20T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/99183#M38579</link>
      <description>&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks — you helped me save time locating the error! The error message:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Uncaught (in promise) TypeError: ServiceWorker script at .../sw.js for scope .../ threw an exception during script evaluation.&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;isn't very helpful.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;To see the progress of the development, visit &lt;A href="https://bugzilla.mozilla.org/show_bug.cgi?id=1360870" target="_blank" rel="noopener"&gt;Bugzilla&lt;/A&gt;. You can also vote for this bug in the 'Details' section.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jun 2025 10:58:56 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/99183#M38579</guid>
      <dc:creator>dasch</dc:creator>
      <dc:date>2025-06-22T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/102699#M39924</link>
      <description>&lt;P&gt;Yeah, it’s definitely frustrating that Firefox still doesn’t support ES module imports in Service Workers — it really limits clean code organization for modern JS apps. Hopefully they catch up soon, especially since Web Workers already support it.&lt;/P&gt;&lt;P&gt;Totally unrelated, but if anyone’s around Florida and needs help with garage issues, I had a great experience with this &lt;STRONG&gt;&lt;A class="" href="https://garagedoorrepairtallahassee-fl.com/" target="_new" rel="noopener"&gt;Garage Door service in Tallahassee&lt;/A&gt;&lt;/STRONG&gt; — super quick and professional!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 20:50:43 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/102699#M39924</guid>
      <dc:creator>markgdrt</dc:creator>
      <dc:date>2025-08-06T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/119469#M46767</link>
      <description>&lt;P&gt;Great question. The ability to use ES modules inside Service Workers would definitely make project structure cleaner and easier to maintain, especially for larger applications that rely on modular code. Hopefully Firefox adds this support soon since most modern workflows already rely heavily on ES module architecture.&lt;/P&gt;&lt;P&gt;By the way, while working on different web projects and documentation discussions like this, I often browse resources online. Recently I came across a helpful travel resource for airport transportation like &lt;A href="https://pearsonairportlimotaxiservice.ca/" target="_self"&gt;&lt;STRONG&gt;Pearson Airport limo taxi&lt;/STRONG&gt;&lt;/A&gt;, which made me think how useful modern web technologies are for improving booking systems and online services.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2026 14:48:37 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/119469#M46767</guid>
      <dc:creator>JohnRoy</dc:creator>
      <dc:date>2026-03-07T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/122902#M48342</link>
      <description>&lt;P&gt;Interesting breakdown of ES module support in Service Workers—this limitation in Firefox definitely complicates modern modular architectures, especially for scalable notification or caching systems. Until full support is standardized across browsers, developers have to rely on bundlers or fallback patterns, which adds extra overhead to otherwise clean module-based designs.&lt;/P&gt;&lt;P&gt;From a broader perspective, this kind of compatibility gap also mirrors challenges seen in frontend-driven platforms like smart home dashboards or automation panels, where modular scripts play a key role in performance and maintainability. I recently came across a well-structured approach to organizing such systems in this guide:&lt;BR /&gt;&lt;A href="https://homediscovering.com/garden-guide-homenumental" target="_blank" rel="noopener"&gt;garden-guide-homenumental&lt;/A&gt; it highlights how modular thinking can be applied even beyond traditional web apps.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 11:08:44 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/122902#M48342</guid>
      <dc:creator>Jonyroy</dc:creator>
      <dc:date>2026-04-15T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Support import statements in Service Workers</title>
      <link>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/123286#M48483</link>
      <description>&lt;P&gt;This is a really important limitation to point out, especially for developers working with modern JavaScript architecture. Service Workers are already central to offline support, caching, and background processing, so lacking proper ECMAScript module import support in Firefox creates real friction in code structure and maintainability. It also forces developers to rely on less clean workarounds, which reduces consistency across different browsers.&lt;/P&gt;&lt;P&gt;In practical systems like Crew Logout, where session handling, authentication states, and background sync are constantly managed in the background, modular Service Worker support would make the architecture much cleaner. This becomes especially important for systems like a &lt;STRONG&gt;&lt;A href="http://crewlogut.com/" target="_self"&gt;digital timesheet website for shift workers&lt;/A&gt;&lt;/STRONG&gt; , where shift data, attendance logs, and updates need to stay accurate and synchronized even when users are switching tabs, going offline, or returning after time gaps.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 04:36:33 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/support-import-statements-in-service-workers/m-p/123286#M48483</guid>
      <dc:creator>Medraso1225</dc:creator>
      <dc:date>2026-04-21T04:36:33Z</dc:date>
    </item>
  </channel>
</rss>

