November was eight releases, 4.1.39 to 4.4.2, with three minor versions in five days. Most of the work went into one place: a dev session that does less on every save and says more when something goes wrong.
Creator and Lead Developer, Extension.js
Reloads only when they are needed
Since 4.3.0, saving a file the build never read no longer reloads the extension, and saving a page reloads only the tabs that show it. 4.2.0 made the loop steadier under it. A save that fixes a build error rebuilds the page, a content script file deleted and written back is rebuilt, and dev on macOS no longer misses an edit.4.4.0 made the rebuild itself faster. Two steps that ran on every rebuild went from about 155 ms to under 30 ms on a large project, and a missing file that comes back rebuilds without a second save.Errors a script can match on
4.2.0 gives named build warnings and errors a stable code, and--output json reports them without terminal layout or paths from your machine. 4.3.0 extends that to the session. A reload that did not land reports W_RELOAD_NOT_APPLIED in --output json and events.ndjson, and a broken package.json stops build, dev, start and preview with E_PACKAGE_JSON_INVALID.The failures that used to hang now end. A browser that does not start within 3 minutes is reported with E_BROWSER_START_TIMEOUT while rebuilds keep running. And since 4.4.0 a JSON file that fails to parse is reported by line and column, never by quoting its text.Each browser is built for itself
4.3.0 compiles Firefox output forfirefox >= 98 and Safari output for safari >= 15.4, and a prefixed permission such as "gecko:tabs" stays with its browser. 4.1.40 did the store-facing half:- A Firefox build splits large files so addons.mozilla.org can parse every script, and names any file it cannot split.
icon_variantsbuilds for every browser. A browser that does not read the key yet, Safari included, getsiconsfilled from your variants.- The
browserpolyfill is off by default on Chromium, since Chromium 148 and later shipbrowsernatively. Pass--polyfillto keep it for older versions.
exclude key, which leaves a page or script out of one browser’s build, and an Edge store zip that leaves the manifest key out while dist/edge keeps it for your OAuth redirects.MAIN world scripts and content script styles
A file your background registers or injects into the MAIN world at runtime now works in dev. Since 4.1.40 it loads its chunks and resolves extension URLs on Chrome and Firefox. Withpolyfill: true, 4.2.0 keeps webextension-polyfill out of MAIN world content scripts and sandboxed pages, where it threw.Content script styles got the same attention. Component styles, CSS modules and a Vue <style> block now reach the page, and a stylesheet edit lands in the open tab without a reload.A browser that starts clean and quits at once
4.4.1 is about the window itself. A Chrome session on a kept profile no longer ends with the extension turned off. Edge shows no “Installed theme, Undo” bar, and neither Edge nor Chromium shows the “unsupported command-line flag” bar. Ctrl+C inpreview and start quits as the browser process ends, in well under a second where it took five.4.4.0 covers the launch. A pinned browser binary is never ignored, so --gecko-binary alone runs a Gecko browser, and a failed launch names the binary and what pinned it. On Windows, Ctrl+C closes the browser at once, and a Firefox session follows the browser through a self-update.Packages that bring their own workers
4.4.2 is for extensions that ship heavy packages such as@ffmpeg/ffmpeg or a SQLite build. import(url) and new Worker(new URL(url, import.meta.url)) with a URL only known at run time stay as written, where they compiled into a call that always threw. A module imported with ?url ships with the files it imports beside it, and a ?url import of a package with an exports map resolves.A service worker that imports from a folder by name, as in import(`./locales/${name}.js`), builds again with those files inside the worker.Your config is followed
Since 4.3.0 a Babel config runs before SWC, tsconfigjsxImportSource and useDefineForClassFields apply, and extension.config.js sees the mode and browser of the command. 4.1.41 loosened the default types to accept the calls the browser accepts, such as chrome.tabs.sendMessage(tabId, message, callback), without @types/chrome.Also
Private files such as.env, .npmrc and .git are never copied into a build since 4.2.0, even from public/, and a production build warns when a public env variable is named like a secret. Telemetry honors DO_NOT_TRACK from 4.2.0, and extension telemetry reset removes the stored ID. Safari builds take your own app icon, and npx extension@latest create my-extension --template=devtools-typescript-sqlite starts a DevTools panel backed by SQLite.December opens with 4.4.3 on the way. A .svelte or .vue file in a project without the framework installed says what to install, and a production build stops instead of shipping uncompiled Sass. More on that next time.Cezar AugustoCreator and Lead Developer, Extension.js

