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

bun build source map : Exclude node modules #15710

Open
Crash-- opened this issue Dec 11, 2024 · 0 comments
Open

bun build source map : Exclude node modules #15710

Crash-- opened this issue Dec 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Crash--
Copy link

Crash-- commented Dec 11, 2024

What is the problem this feature would solve?

I used to bundle my Javascript script using bun, something like :

bun build ./src/TaskLauncherLambda.mts --outdir ./dist --target node --entry-naming TaskLauncherLambda.mjs

It works great and I just added --sourcemap="linked" to generate the source map. Works great too.

But I need to run my Javascript script with node, so I launch node with ----enable-source-maps but there are some perf issues with "big sourcemap". cf nodejs/node#41541

It seems that the user using esbuild are happy with the perf when excluding the node_modules from the source map. cf evanw/esbuild#1685 (comment)

What is the feature you are proposing to solve the problem?

I'm proposing a way to exclude the node_modules from the source map.

What alternatives have you considered?

No response

@Crash-- Crash-- added the enhancement New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant