From 5163759e0ec36a9511634bef1f960d9e9ed229ef Mon Sep 17 00:00:00 2001 From: Nicolas Beaussart Date: Wed, 8 Feb 2023 14:51:09 +0100 Subject: [PATCH] ci: clean up old console build PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7826 GitOrigin-RevId: a70472d5befaef1d0f0d072c86c848e8734fe78a --- .../src/executors/build-server-assets/executor.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/libs/nx/internal-plugin/src/executors/build-server-assets/executor.ts b/frontend/libs/nx/internal-plugin/src/executors/build-server-assets/executor.ts index 3ba367bac0f..701f35cf402 100644 --- a/frontend/libs/nx/internal-plugin/src/executors/build-server-assets/executor.ts +++ b/frontend/libs/nx/internal-plugin/src/executors/build-server-assets/executor.ts @@ -111,6 +111,10 @@ export default async function runMyExecutor( validateAllowedAssets(extractedAssets); const loaderFile = generateAssetLoaderFile(extractedAssets); tree.write(`${serverAssetBase}/versioned/assetLoader.js`, loaderFile); + tree.write( + `${serverAssetBase}/versioned/main.js`, + generatePolyfillLoaderFile(loaderFile) + ); tree.write( `${serverAssetBase}/loaderPolyfill.js`, generatePolyfillLoaderFile(loaderFile) @@ -122,7 +126,7 @@ export default async function runMyExecutor( { commands: [ `gzip -f ${serverAssetBase}/versioned/assetLoader.js`, - `gzip -f ${serverAssetBase}/loaderPolyfill.js`, + `gzip -f ${serverAssetBase}/versioned/main.js`, ], parallel: false, __unparsed__: [],