Skip to content

Esbuild plugin does up inject/upload all source and map files on build #351

Description

@Fwang36

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

@sentry/esbuild-plugin 2.4.0

Framework Version

react 18.2

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Enable splitting in esbuild config with splitting: true
  2. Create a dynamic import
  3. Add the sentryEsbuildPlugin()
  4. build

My esbuild config -
Screenshot 2023-07-19 at 10 06 24 AM

My output files -
Screenshot 2023-07-19 at 10 06 39 AM

Upload logs where only app.js and app.js.map being uploaded -
Screenshot 2023-07-19 at 10 07 09 AM

Expected Result

All the files outputted by the bundler should be injected and uploaded

Actual Result

Not all files outputted by the bundler are being injected and uploaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    Status
    Waiting for: Product Owner
    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions