Skip to content

Update esbuild.config.mjs - #16

Merged
BleckWolf25 merged 1 commit into
mainfrom
BleckWolf25-patch-1
Jul 13, 2026
Merged

Update esbuild.config.mjs#16
BleckWolf25 merged 1 commit into
mainfrom
BleckWolf25-patch-1

Conversation

@BleckWolf25

@BleckWolf25 BleckWolf25 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary by Sourcery

Documentation:

  • Refresh the file header to describe the configuration as a strict ESLint setup for CodePulse and update versioning and dates.

@sourcery-ai

sourcery-ai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the header documentation in esbuild.config.mjs (version, summary, description, dates) to reflect ESLint configuration for CodePulse, with no functional changes to the build logic.

File-Level Changes

Change Details Files
Update file header metadata and documentation comments to describe ESLint configuration for CodePulse instead of VS Code extension bundling.
  • Change @Version from 2.0.0 to 1.0.0 in the header block.
  • Update @summary to describe ESLint configuration for CodePulse.
  • Replace the detailed description of bundling runtime dependencies with a brief note about strict ESLint configuration ignoring runtime dependencies.
  • Update the @Updated date from 09/07/2026 to 13/07/2026.
  • Ensure file ends with a newline after the closing brace of the build error handler.
esbuild.config.mjs

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@BleckWolf25
BleckWolf25 merged commit f84bcfc into main Jul 13, 2026
4 of 5 checks passed
@BleckWolf25
BleckWolf25 deleted the BleckWolf25-patch-1 branch July 13, 2026 09:41

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 2 issues, and left some high level feedback:

  • The updated file header now describes this as an ESLint configuration, but the file still contains esbuild bundling logic; please align the summary/description with the actual purpose of the module.
  • The version was changed from 2.0.0 back to 1.0.0 and the @SInCE date is set in the future; double-check that the versioning and dates reflect the real release history and timeline.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The updated file header now describes this as an ESLint configuration, but the file still contains esbuild bundling logic; please align the summary/description with the actual purpose of the module.
- The version was changed from 2.0.0 back to 1.0.0 and the @since date is set in the future; double-check that the versioning and dates reflect the real release history and timeline.

## Individual Comments

### Comment 1
<location path="esbuild.config.mjs" line_range="8-11" />
<code_context>
  * @license MIT
  *
- * @summary esbuild configuration for bundling the VS Code extension.
+ * @summary ESLint configuration for CodePulse.
  *
  * @description
- * Bundles the extension code, but keeps runtime dependencies (web-tree-sitter,
- * tree-sitter languages, sql.js, jspdf) as external modules since they need
- * their WASM files to be available at runtime.
- *
- * Runtime dependencies are shipped in the `deps/` directory (not node_modules)
- * because pnpm's symlinked node_modules are incompatible with vsce packaging.
- * The depsRewrite plugin rewrites bare imports of these packages to resolve
- * from `../deps/<package>` relative to the output file in `out/`.
+ * Strict ESLint configuration for CodePulse that ignores runtime dependencies.
  *
  * @since 09/07/2026
</code_context>
<issue_to_address>
**issue:** Header summary/description no longer matches the role of this file.

The header now describes an ESLint config, but this file is an esbuild bundling config. Please update the summary/description to accurately reflect the module’s actual purpose so future maintainers and any tooling using these annotations aren’t misled.
</issue_to_address>

### Comment 2
<location path="esbuild.config.mjs" line_range="11" />
<code_context>
- * because pnpm's symlinked node_modules are incompatible with vsce packaging.
- * The depsRewrite plugin rewrites bare imports of these packages to resolve
- * from `../deps/<package>` relative to the output file in `out/`.
+ * Strict ESLint configuration for CodePulse that ignores runtime dependencies.
  *
  * @since 09/07/2026
</code_context>
<issue_to_address>
**suggestion:** Description no longer reflects behavior of the esbuild configuration.

The previous description correctly explained the bundling behavior and handling of externals, while the new one is about ESLint and seems unrelated. Please restore or rewrite the header so it accurately documents this build configuration (externals, output path, etc.).

Suggested implementation:

```javascript
 *
 * @description
 * Esbuild configuration for the CodePulse VS Code extension that:
 * - Works around pnpm's symlinked node_modules which are incompatible with vsce packaging.
 * - Treats selected runtime dependencies as externals and rewrites their bare imports
 *   via the `depsRewrite` plugin to resolve from `../deps/<package>` relative to `out/`.
 * - Emits bundled extension code into the `out/` directory for packaging.
 *
 * @since 09/07/2026
 * @updated 13/07/2026
 */

```

```javascript
 // ---------- IMPORTS
import esbuild from 'esbuild';
build().catch((error) => {

```

If the configuration currently uses different plugin names, externals handling, or output paths than described here, you should:
1. Adjust the bullet points in the `@description` to match the actual plugin names (e.g. if `depsRewrite` has been renamed).
2. Update the mention of `../deps/<package>` and `out/` to the real paths configured in this file (e.g. `dist/`, different deps folder).
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread esbuild.config.mjs
Comment on lines +8 to +11
* @summary ESLint configuration for CodePulse.
*
* @description
* Bundles the extension code, but keeps runtime dependencies (web-tree-sitter,
* tree-sitter languages, sql.js, jspdf) as external modules since they need
* their WASM files to be available at runtime.
*
* Runtime dependencies are shipped in the `deps/` directory (not node_modules)
* because pnpm's symlinked node_modules are incompatible with vsce packaging.
* The depsRewrite plugin rewrites bare imports of these packages to resolve
* from `../deps/<package>` relative to the output file in `out/`.
* Strict ESLint configuration for CodePulse that ignores runtime dependencies.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue: Header summary/description no longer matches the role of this file.

The header now describes an ESLint config, but this file is an esbuild bundling config. Please update the summary/description to accurately reflect the module’s actual purpose so future maintainers and any tooling using these annotations aren’t misled.

Comment thread esbuild.config.mjs
* because pnpm's symlinked node_modules are incompatible with vsce packaging.
* The depsRewrite plugin rewrites bare imports of these packages to resolve
* from `../deps/<package>` relative to the output file in `out/`.
* Strict ESLint configuration for CodePulse that ignores runtime dependencies.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: Description no longer reflects behavior of the esbuild configuration.

The previous description correctly explained the bundling behavior and handling of externals, while the new one is about ESLint and seems unrelated. Please restore or rewrite the header so it accurately documents this build configuration (externals, output path, etc.).

Suggested implementation:

 *
 * @description
 * Esbuild configuration for the CodePulse VS Code extension that:
 * - Works around pnpm's symlinked node_modules which are incompatible with vsce packaging.
 * - Treats selected runtime dependencies as externals and rewrites their bare imports
 *   via the `depsRewrite` plugin to resolve from `../deps/<package>` relative to `out/`.
 * - Emits bundled extension code into the `out/` directory for packaging.
 *
 * @since 09/07/2026
 * @updated 13/07/2026
 */
 // ---------- IMPORTS
import esbuild from 'esbuild';
build().catch((error) => {

If the configuration currently uses different plugin names, externals handling, or output paths than described here, you should:

  1. Adjust the bullet points in the @description to match the actual plugin names (e.g. if depsRewrite has been renamed).
  2. Update the mention of ../deps/<package> and out/ to the real paths configured in this file (e.g. dist/, different deps folder).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant