Skip to content

Commit

Permalink
update this comment a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jul 25, 2024
1 parent 96ea3ff commit a0f99b2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/dashboard/esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit a0f99b2

Please sign in to comment.