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 {