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

fix: don't include source maps in release mode #22751

Merged
merged 3 commits into from Mar 6, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Mar 6, 2024

Due to bug in deno_ast the source_map setting is ignored and source map
is always emitted. This is fixed by updating deno_ast.

Copy link
Member

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartlomieju bartlomieju enabled auto-merge (squash) March 6, 2024 20:32
.map(|sm| sm.into_bytes().into())
} else {
None
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just fix this in deno_ast instead of landing this somewhat of a hack? It's a few lines of code change to fix it there and then we can do a quick patch release.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can fix it in deno_ast right now. Just give me a few minutes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumped deno_ast

@dsherret dsherret disabled auto-merge March 6, 2024 21:03
@bartlomieju bartlomieju enabled auto-merge (squash) March 6, 2024 22:18
@bartlomieju bartlomieju merged commit 6b48aff into denoland:main Mar 6, 2024
17 checks passed
@bartlomieju bartlomieju deleted the fix_source_maps branch March 6, 2024 22:54
littledivy pushed a commit that referenced this pull request Mar 8, 2024
Due to bug in `deno_ast` the `source_map` setting is ignored and source
map is always emitted. This is fixed by updating `deno_ast`.
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.

None yet

3 participants