You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Esbuild: plugin throws a warning when the entry point doesn't have a default export #25885
If 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.
Expected Result
Not see a warning
Actual Result
I'm getting the following warning when I'm running the build:
▲ [WARNING] Import "default" will always be undefined because there is no matching export in "index.ts" [import-is-undefined]
index.ts?sentryProxyModule=true:4:44:
4 │ export default OriginalModule.default;
╵ ~~~~~~~
Activity
andreiborza commentedon Jun 10, 2025
Hi Lazar, thanks for filing this! Not sure when we'll get to this but this seems like a good first issue for potential outside contributors.
fix(esbuild): Avoid "Import 'default' will always be undefined" warning
linear-code commentedon Oct 29, 2026
JS-4039
fix(esbuild): Avoid import-is-undefined warning for entries without a…