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(es/compat): Fix sourcemap of transforms #6474

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions crates/swc_ecma_transforms_compat/tests/es2015_classes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ use swc_ecma_transforms_compat::{
es2016, es2017, es2018, es2022,
es2022::class_properties,
};
use swc_ecma_transforms_testing::{compare_stdout, test, test_exec, test_fixture, Tester};
use swc_ecma_transforms_testing::{
compare_stdout, test, test_exec, test_fixture, FixtureTestConfig, Tester,
};
use swc_ecma_visit::Fold;

fn syntax() -> Syntax {
Expand Down Expand Up @@ -6782,7 +6784,10 @@ fn fixture(input: PathBuf) {
},
&input,
&output,
Default::default(),
FixtureTestConfig {
sourcemap: true,
..Default::default()
},
);
}

Expand Down