From 0d4460e4c06ac4dc3953c78ebc51701d00be3ef3 Mon Sep 17 00:00:00 2001 From: Duval Kilpatrick Date: Tue, 17 Oct 2023 10:08:43 -0400 Subject: [PATCH 1/2] fix(plugin): templateModule cache incorrect type --- .../vite-plugin/build/buildStart/rendering/templateUtils.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/pages/src/vite-plugin/build/buildStart/rendering/templateUtils.ts b/packages/pages/src/vite-plugin/build/buildStart/rendering/templateUtils.ts index 10df164a5..9c641517e 100644 --- a/packages/pages/src/vite-plugin/build/buildStart/rendering/templateUtils.ts +++ b/packages/pages/src/vite-plugin/build/buildStart/rendering/templateUtils.ts @@ -13,7 +13,7 @@ import { } from "../../../../common/src/template/internal/types.js"; import { ProjectStructure } from "../../../../common/src/project/structure.js"; -const pathToModule = new Map(); +const pathToModule = new Map>(); /** * @returns an array of template modules matching the document's feature. @@ -33,6 +33,7 @@ export const readTemplateModules = async ( let importedModule = pathToModule.get(path) as TemplateModule; if (!importedModule) { importedModule = await import(path); + pathToModule.set(path, importedModule); } const templateModuleInternal = convertTemplateModuleToTemplateModuleInternal( @@ -41,8 +42,6 @@ export const readTemplateModules = async ( true ); - pathToModule.set(path, templateModuleInternal); - return templateModuleInternal; }; From 6fa6827a247c31da11a2fd08526f6680497cea98 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 14:10:17 +0000 Subject: [PATCH 2/2] Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check --- packages/pages/THIRD-PARTY-NOTICES | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pages/THIRD-PARTY-NOTICES b/packages/pages/THIRD-PARTY-NOTICES index 93d1b27ab..300f67f22 100644 --- a/packages/pages/THIRD-PARTY-NOTICES +++ b/packages/pages/THIRD-PARTY-NOTICES @@ -552,7 +552,7 @@ SOFTWARE. The following npm package may be included in this product: - - rollup@3.28.0 + - rollup@3.29.4 This package contains the following license and notice below: @@ -1350,7 +1350,7 @@ END OF TERMS AND CONDITIONS The following npm package may be included in this product: - - vite-plugin-node-polyfills@0.11.0 + - vite-plugin-node-polyfills@0.11.3 This package contains the following license and notice below: @@ -1380,7 +1380,7 @@ SOFTWARE. The following npm package may be included in this product: - - vite@4.4.9 + - vite@4.4.11 This package contains the following license and notice below: