Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esbuild doesn't work in nodejs v20 #3123

Closed
its-dibo opened this issue May 18, 2023 · 2 comments
Closed

esbuild doesn't work in nodejs v20 #3123

its-dibo opened this issue May 18, 2023 · 2 comments

Comments

@its-dibo
Copy link

I upgraded my nodejs to v20, but I noticed that the generated output is not bundled, even not compiled, i.e the contents of output/index.mjs is almost the same as src/index.ts with minor changes.

when i revert back into nodejs v19 it worked correctly.

I tested it in windows x64 and ubunto

@hyrious
Copy link

hyrious commented May 18, 2023

I'm using node20 too and didn't notice this issue. Maybe you should provide a reproduction to make it clear.

@its-dibo its-dibo changed the title esbuild doesn't bundle in nodejs v20 esbuild doesn't work in nodejs v20 May 18, 2023
@its-dibo
Copy link
Author

its-dibo commented May 18, 2023

so far, I think the problem occurs when importing from an alias path.
probably this issue is coming from tsconfig-paths as matchPath(args.path) returns undefined

dividab/tsconfig-paths#248

I'll close this issue as it is not relevant to esbuild

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

No branches or pull requests

2 participants