Skip to content

Commit

Permalink
fix devwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
fpbrault committed Sep 13, 2024
1 parent e089276 commit 6aa2af4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/atomic/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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`,
Expand Down Expand Up @@ -286,7 +286,7 @@ export const config: Config = {
html({
include: 'src/templates/**/*.html',
}),
replaceHeadlessMap(),
isDevWatch && replaceHeadlessMap(),
externalizeDependenciesPlugin(),
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/headless/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async function buildBrowserConfig(options, outDir) {
minify: true,
sourcemap: true,
metafile: true,
external: ['crypto', '@coveo/bueno'],
external: ['crypto'],
...options,
plugins: [
alias({
Expand Down

0 comments on commit 6aa2af4

Please sign in to comment.