From ee860e7bb6b848e131b4a0f820dfd2f51987acaa Mon Sep 17 00:00:00 2001 From: Hichem Fantar Date: Mon, 6 Jan 2025 01:25:19 +0100 Subject: [PATCH] fix background.type manifest property typescript type (#916) * Update manifest.ts * Update manifest.ts * Add changeset --------- Co-authored-by: Jack Steam --- .changeset/tiny-moose-occur.md | 5 +++++ packages/vite-plugin/src/node/manifest.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tiny-moose-occur.md diff --git a/.changeset/tiny-moose-occur.md b/.changeset/tiny-moose-occur.md new file mode 100644 index 000000000..b5b94e6f0 --- /dev/null +++ b/.changeset/tiny-moose-occur.md @@ -0,0 +1,5 @@ +--- +"@crxjs/vite-plugin": patch +--- + +fix background.type manifest property typescript type diff --git a/packages/vite-plugin/src/node/manifest.ts b/packages/vite-plugin/src/node/manifest.ts index c3c89ea04..a4dc416c0 100644 --- a/packages/vite-plugin/src/node/manifest.ts +++ b/packages/vite-plugin/src/node/manifest.ts @@ -18,7 +18,7 @@ export interface WebAccessibleResourceById { export interface ChromeManifestBackground { service_worker: string - type?: 'module' // If the service worker uses ES modules + type?: 'module' | (string & {}) // If the service worker uses ES modules } export interface FirefoxManifestBackground {