Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add descriptions to esbuild configs
  • Loading branch information
camdecoster committed Oct 20, 2025
commit 9b651a9aee794531a62533172da3d1cc68906b9e
5 changes: 4 additions & 1 deletion esbuild-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const esbuildConfig = {
logLevel: 'info'
};

// Config used when building bundle to serve test dashboard
const devtoolsConfig = {
Copy link
Contributor

@emilykl emilykl Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@camdecoster Could you add a comment above each of these configs explaining what it's used for (to the extent that you know)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll come up with something, but the variable names were my attempt at a description.

entryPoints: [path.join(constants.pathToRoot, 'devtools', 'test_dashboard', 'devtools.js')],
outfile: path.join(constants.pathToRoot, 'build', 'test_dashboard-bundle.js'),
Expand All @@ -38,11 +39,13 @@ const devtoolsConfig = {
logLevel: 'info'
};

// Config used when building plotly.js for local development
const localDevConfig = {
...esbuildConfig,
outfile: './build/plotly.js'
};

// Config used when building bundle to serve regl
const localDevReglCodegenConfig = {
...esbuildConfig,
entryPoints: [path.join(constants.pathToRoot, 'devtools/regl_codegen', 'devtools.js')],
Expand All @@ -55,5 +58,5 @@ module.exports = {
devtoolsConfig,
esbuildConfig,
localDevConfig,
localDevReglCodegenConfig,
localDevReglCodegenConfig
};