@crxjs/vite-plugin 2.0.0-beta.23 → 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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
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
|
-
|
|
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,10 +1229,15 @@ const pluginHMR = () => {
|
|
|
1229
1229
|
handleHotUpdate({ modules, server }) {
|
|
1230
1230
|
const { root } = server.config;
|
|
1231
1231
|
const relFiles = /* @__PURE__ */ new Set();
|
|
1232
|
-
|
|
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)))) {
|