From 6aa2af49393d80ca8cf69cf4da77d9cce8d1d61f Mon Sep 17 00:00:00 2001 From: Felix Perron-Brault Date: Fri, 13 Sep 2024 15:29:20 -0400 Subject: [PATCH] fix devwatch https://coveord.atlassian.net/browse/KIT-3181 --- packages/atomic/stencil.config.ts | 10 +++++----- packages/headless/esbuild.mjs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/atomic/stencil.config.ts b/packages/atomic/stencil.config.ts index f6fdb9c45e7..1bf2e1de735 100644 --- a/packages/atomic/stencil.config.ts +++ b/packages/atomic/stencil.config.ts @@ -49,10 +49,6 @@ try { } const packageMappings: {[key: string]: {devWatch: string; cdn: string}} = { - '@coveo/headless': { - devWatch: path.resolve(__dirname, './src/external-builds/headless.esm.js'), - cdn: `https://static.cloud.coveo.com/headless/${headlessVersion}/headless.esm.js`, - }, '@coveo/headless/commerce': { devWatch: path.resolve( __dirname, @@ -88,6 +84,10 @@ const packageMappings: {[key: string]: {devWatch: string; cdn: string}} = { ), cdn: `https://static.cloud.coveo.com/headless/${headlessVersion}/case-assist/headless.esm.js`, }, + '@coveo/headless': { + devWatch: path.resolve(__dirname, './src/external-builds/headless.esm.js'), + cdn: `https://static.cloud.coveo.com/headless/${headlessVersion}/headless.esm.js`, + }, /* '@coveo/bueno': { devWatch: path.resolve(__dirname, './src/external-builds/bueno.esm.js'), cdn: `https://static.cloud.coveo.com/bueno/${headlessVersion}/bueno.esm.js`, @@ -286,7 +286,7 @@ export const config: Config = { html({ include: 'src/templates/**/*.html', }), - replaceHeadlessMap(), + isDevWatch && replaceHeadlessMap(), externalizeDependenciesPlugin(), ], }, diff --git a/packages/headless/esbuild.mjs b/packages/headless/esbuild.mjs index 574aef13d52..661ed911ce0 100644 --- a/packages/headless/esbuild.mjs +++ b/packages/headless/esbuild.mjs @@ -194,7 +194,7 @@ async function buildBrowserConfig(options, outDir) { minify: true, sourcemap: true, metafile: true, - external: ['crypto', '@coveo/bueno'], + external: ['crypto'], ...options, plugins: [ alias({