Title: Esbuild: plugin throws a warning when the entry point doesn't have a default export · Issue #25885 · getsentry/sentry-javascript · GitHub
Open Graph Title: Esbuild: plugin throws a warning when the entry point doesn't have a default export · Issue #25885 · getsentry/sentry-javascript
X Title: Esbuild: plugin throws a warning when the entry point doesn't have a default export · Issue #25885 · getsentry/sentry-javascript
Description: Environment node: 23.9.0 esbuild: 0.25.5 @sentry/esbuild-plugin: 3.5.0 Steps to Reproduce Just added the @sentry/esbuild-plugin: import 'dotenv/config'; import esbuild from 'esbuild'; import { sentryEsbuildPlugin } from '@sentry/esbuild-...
Open Graph Description: Environment node: 23.9.0 esbuild: 0.25.5 @sentry/esbuild-plugin: 3.5.0 Steps to Reproduce Just added the @sentry/esbuild-plugin: import 'dotenv/config'; import esbuild from 'esbuild'; import { sent...
X Description: Environment node: 23.9.0 esbuild: 0.25.5 @sentry/esbuild-plugin: 3.5.0 Steps to Reproduce Just added the @sentry/esbuild-plugin: import 'dotenv/config'; import esbuild from 'esbuild'...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25885
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Esbuild: plugin throws a warning when the entry point doesn't have a default export","articleBody":"### Environment\n\n- `node`: 23.9.0\n- `esbuild`: 0.25.5\n- `@sentry/esbuild-plugin`: 3.5.0\n\n### Steps to Reproduce\n\nJust added the `@sentry/esbuild-plugin`:\n```javascript\nimport 'dotenv/config';\nimport esbuild from 'esbuild';\nimport { sentryEsbuildPlugin } from '@sentry/esbuild-plugin';\n\nesbuild.build({\n entryPoints: ['index.ts'],\n sourcemap: true,\n bundle: true,\n minify: true,\n platform: 'node',\n outdir: 'dist',\n allowOverwrite: true,\n plugins: [\n sentryEsbuildPlugin({\n authToken: process.env.SENTRY_AUTH_TOKEN,\n org: process.env.SENTRY_ORG,\n project: process.env.SENTRY_PROJECT,\n sourcemaps: {\n filesToDeleteAfterUpload: ['**/*.js.map'],\n },\n }),\n ],\n});\n```\nIf I comment out the plugin the warning is not being displayed. My entry point `index.ts` file does not have any exports. It's an express.js app so I don't have anything to export.\n\n### Expected Result\n\nNot see a warning\n\n### Actual Result\n\nI'm getting the following warning when I'm running the build:\n```text\n▲ [WARNING] Import \"default\" will always be undefined because there is no matching export in \"index.ts\" [import-is-undefined]\n\n index.ts?sentryProxyModule=true:4:44:\n 4 │ export default OriginalModule.default;\n ╵ ~~~~~~~\n```\n","author":{"url":"https://github.com/nikolovlazar","@type":"Person","name":"nikolovlazar"},"datePublished":"2025-06-05T18:29:17Z","url":"https://github.com/getsentry/sentry-javascript/issues/25885"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca8905d2-9e2f-5037-311e-7914ed02eab2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97FA:2B0ADD:55FFD5:769F97:6B045571 |
| html-safe-nonce | 474f998845d5f2403458239ee070baa5cf74629a6520169a7cbcf6045eaed1af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0ZBOjJCMEFERDo1NUZGRDU6NzY5Rjk3OjZCMDQ1NTcxIiwidmlzaXRvcl9pZCI6IjM1MTk2OTE0MDAyMzc3NjYyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9c162e128cb71393f8e3e6da0eb20a93864be893da987d500c37f992871fd40b |
| hovercard-subject-tag | issue:6102082918 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25885/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2e1a1e69703ec5eec25582f60e6f00b98bcfcfc35877e875403ac90ac6b677c/getsentry/sentry-javascript/issues/25885 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2e1a1e69703ec5eec25582f60e6f00b98bcfcfc35877e875403ac90ac6b677c/getsentry/sentry-javascript/issues/25885 |
| og:image:alt | Environment node: 23.9.0 esbuild: 0.25.5 @sentry/esbuild-plugin: 3.5.0 Steps to Reproduce Just added the @sentry/esbuild-plugin: import 'dotenv/config'; import esbuild from 'esbuild'; import { sent... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nikolovlazar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width