From dfc1d05de9cbf6a3c9ae436b3b057a2c418298b9 Mon Sep 17 00:00:00 2001 From: Arhan Chaudhary Date: Sat, 27 Apr 2024 20:07:10 -0400 Subject: [PATCH] Support wasm --- packages/workbox-build/src/schema/GenerateSWOptions.json | 2 +- packages/workbox-build/src/schema/GetManifestOptions.json | 2 +- packages/workbox-build/src/schema/InjectManifestOptions.json | 2 +- packages/workbox-build/src/types.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/workbox-build/src/schema/GenerateSWOptions.json b/packages/workbox-build/src/schema/GenerateSWOptions.json index 6a5f8b0ab..0a7c4137c 100644 --- a/packages/workbox-build/src/schema/GenerateSWOptions.json +++ b/packages/workbox-build/src/schema/GenerateSWOptions.json @@ -55,7 +55,7 @@ "globPatterns": { "description": "Files matching any of these patterns will be included in the precache\nmanifest. For more information, see the\n[`glob` primer](https://github.com/isaacs/node-glob#glob-primer).", "default": [ - "**/*.{js,css,html}" + "**/*.{js,wasm,css,html}" ], "type": "array", "items": { diff --git a/packages/workbox-build/src/schema/GetManifestOptions.json b/packages/workbox-build/src/schema/GetManifestOptions.json index 4042acb71..a6e5aff91 100644 --- a/packages/workbox-build/src/schema/GetManifestOptions.json +++ b/packages/workbox-build/src/schema/GetManifestOptions.json @@ -55,7 +55,7 @@ "globPatterns": { "description": "Files matching any of these patterns will be included in the precache\nmanifest. For more information, see the\n[`glob` primer](https://github.com/isaacs/node-glob#glob-primer).", "default": [ - "**/*.{js,css,html}" + "**/*.{js,wasm,css,html}" ], "type": "array", "items": { diff --git a/packages/workbox-build/src/schema/InjectManifestOptions.json b/packages/workbox-build/src/schema/InjectManifestOptions.json index d810e1d18..6cc5068eb 100644 --- a/packages/workbox-build/src/schema/InjectManifestOptions.json +++ b/packages/workbox-build/src/schema/InjectManifestOptions.json @@ -55,7 +55,7 @@ "globPatterns": { "description": "Files matching any of these patterns will be included in the precache\nmanifest. For more information, see the\n[`glob` primer](https://github.com/isaacs/node-glob#glob-primer).", "default": [ - "**/*.{js,css,html}" + "**/*.{js,wasm,css,html}" ], "type": "array", "items": { diff --git a/packages/workbox-build/src/types.ts b/packages/workbox-build/src/types.ts index 4b6b36b71..608f1a99a 100644 --- a/packages/workbox-build/src/types.ts +++ b/packages/workbox-build/src/types.ts @@ -401,7 +401,7 @@ export interface GlobPartial { * Files matching any of these patterns will be included in the precache * manifest. For more information, see the * [`glob` primer](https://github.com/isaacs/node-glob#glob-primer). - * @default ["**\/*.{js,css,html}"] + * @default ["**\/*.{js,wasm,css,html}"] */ globPatterns?: Array; /**