@crxjs/vite-plugin 2.0.0-beta.22 → 2.0.0-beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -33,7 +33,12 @@ interface ManifestV3 {
33
33
  description?: string | undefined;
34
34
  icons?: chrome.runtime.ManifestIcons | undefined;
35
35
  action?: chrome.runtime.ManifestAction | undefined;
36
- author?: string | undefined;
36
+ /**
37
+ * @see https://developer.chrome.com/docs/extensions/reference/manifest/author
38
+ */
39
+ author?: {
40
+ email: string;
41
+ } | undefined;
37
42
  background?: ChromeManifestBackground | FirefoxManifestBackground | undefined;
38
43
  chrome_settings_overrides?: {
39
44
  homepage?: string | undefined;
package/dist/index.mjs CHANGED
@@ -1229,16 +1229,20 @@ const pluginHMR = () => {
1229
1229
  handleHotUpdate({ modules, server }) {
1230
1230
  const { root } = server.config;
1231
1231
  const relFiles = /* @__PURE__ */ new Set();
1232
- for (const m of modules)
1232
+ const fsFiles = /* @__PURE__ */ new Set();
1233
+ for (const m of modules) {
1233
1234
  if (m.id?.startsWith(root)) {
1234
1235
  relFiles.add(m.id.slice(server.config.root.length));
1236
+ } else if (m.url?.startsWith("/@fs")) {
1237
+ fsFiles.add(m.url);
1235
1238
  }
1239
+ }
1240
+ fsFiles.forEach((file) => update(file));
1236
1241
  if (inputManifestFiles.background.length) {
1237
1242
  const background = prefix$1("/", inputManifestFiles.background[0]);
1238
1243
  if (relFiles.has(background) || modules.some(isImporter(join(server.config.root, background)))) {
1239
1244
  debug$1("sending runtime reload");
1240
1245
  server.ws.send(crxRuntimeReload);
1241
- return [];
1242
1246
  }
1243
1247
  }
1244
1248
  for (const [key, script] of contentScripts)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crxjs/vite-plugin",
3
- "version": "2.0.0-beta.22",
3
+ "version": "2.0.0-beta.25",
4
4
  "description": "Build Chrome Extensions with this Vite plugin.",
5
5
  "keywords": [
6
6
  "rollup-plugin",