Skip to content

feat: add --disable-source-maps option for JS target#1496

Draft
hackwaly wants to merge 1 commit intomainfrom
feature/disable-source-maps
Draft

feat: add --disable-source-maps option for JS target#1496
hackwaly wants to merge 1 commit intomainfrom
feature/disable-source-maps

Conversation

@hackwaly
Copy link
Copy Markdown
Contributor

@hackwaly hackwaly commented Mar 2, 2026

Add a new --disable-source-maps CLI flag to control whether --enable-source-maps is passed to the Node.js runtime when running moon test/run with --target js.

Changes:

  • Add disable_source_maps field to BuildFlags in cli.rs

  • Update command_for() to accept enable_source_maps parameter

  • Thread the flag through test and run command execution paths

  • Default behavior unchanged: source maps remain enabled

  • Related issues: None

  • PR kind:

Summary

Metadata

  • Tests added/updated for bug fixes or new features
  • Compatible with Windows/Linux/macOS

Add a new --disable-source-maps CLI flag to control whether
--enable-source-maps is passed to the Node.js runtime when
running moon test/run with --target js.

Changes:
- Add disable_source_maps field to BuildFlags in cli.rs
- Update command_for() to accept enable_source_maps parameter
- Thread the flag through test and run command execution paths
- Default behavior unchanged: source maps remain enabled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented Mar 2, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  crates/moon/src/cli/run.rs  80% smaller
  crates/moon/src/run/runtime.rs  13% smaller
  crates/moon/src/cli.rs  0% smaller
  crates/moon/src/cli/test.rs  0% smaller
  crates/moon/src/cli/tool/build_binary_dep.rs  0% smaller
  crates/moon/src/run/runtest.rs  0% smaller

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