Skip to content

Commit

Permalink
Transformation code necessary to support Server Actions (vercel/turbo…
Browse files Browse the repository at this point in the history
…repo#5705)

### Description

This adds the comments that are added during transforms to out file
outputs.

### Testing Instructions

```bash
cargo nextest run -E 'test(snapshot)'
```

Closes WEB-1388
  • Loading branch information
jridgewell authored Aug 16, 2023
1 parent dc1b05e commit 5cd6a30
Show file tree
Hide file tree
Showing 19 changed files with 413 additions and 86 deletions.
3 changes: 2 additions & 1 deletion crates/turbopack-ecmascript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ async fn gen_content_with_visitors(
source_map,
globals,
eval_context,
comments,
..
} = &*parsed
{
Expand Down Expand Up @@ -650,7 +651,7 @@ async fn gen_content_with_visitors(
..Default::default()
},
cm: source_map.clone(),
comments: None,
comments: Some(&comments),
wr: JsWriter::new(source_map.clone(), "\n", &mut bytes, Some(&mut srcmap)),
};

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5cd6a30

Please sign in to comment.