Skip to content

fix: emit source maps in esbuild #79

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: emit source maps in esbuild #79

wants to merge 1 commit into from

Conversation

71
Copy link

@71 71 commented Aug 10, 2025

This change makes the esbuild plugin emit source maps inline (if enabled). esbuild can recognize inline source maps and uses them for the rest of the build.

build.initialOptions.sourcemap can have various values (boolean, undefined, a few string values). A simple truthy check is what we want, since false and undefined disable source maps, and all other values enable them. Whatever value is given to esbuild, we only want to output an inline source map since esbuild will post-process it anyway.

Copy link

netlify bot commented Aug 10, 2025

Deploy Preview for macaron-css canceled.

Name Link
🔨 Latest commit 060bd72
🔍 Latest deploy log https://app.netlify.com/projects/macaron-css/deploys/68984d5d300f570008dc1953

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

Successfully merging this pull request may close these issues.

1 participant