From a0f99b225458e2678746bba69da655372a8c049d Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Thu, 25 Jul 2024 12:17:14 -0400 Subject: [PATCH] update this comment a bit --- apps/dashboard/esbuild.config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/esbuild.config.js b/apps/dashboard/esbuild.config.js index 891e8364a1..958ea33e6c 100644 --- a/apps/dashboard/esbuild.config.js +++ b/apps/dashboard/esbuild.config.js @@ -37,12 +37,17 @@ const prepPlugin = { }, } -// don't package minified javascript +// We can run into conflicts if we use the minified +// version of some dependencies. So this plugin ensures +// that we compile the source code of a given dependency +// instead of the minified version. +// +// See https://github.com/OSC/ondemand/issues/3688 for more information. const minifiedSrcResolvePlugin = { name: 'minifiedSrcResolvePlugin', setup(build) { - // Redirect all paths starting with "images/" to "./public/images/" - build.onResolve({ filter: /preact|exifr.*/ }, args => { + + build.onResolve({ filter: /preact|exifr.*/ }, args => { const preactBase = `${__dirname}/node_modules/preact`; const lookup = {