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

refactor(es/typescript): Simplifying enum and namespace transforms #9558

Merged
merged 16 commits into from
Oct 4, 2024

Conversation

magic-akari
Copy link
Member

Copy link

changeset-bot bot commented Sep 14, 2024

🦋 Changeset detected

Latest commit: fb21f56

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@magic-akari magic-akari changed the title refactor(es/typescript): refactor(es/typescript): Simplifying enum and namespace transforms Sep 14, 2024
Copy link

codspeed-hq bot commented Sep 14, 2024

CodSpeed Performance Report

Merging #9558 will improve performances by 3.44%

Comparing magic-akari:refactor/typescript (fb21f56) with main (ec0a62c)

Summary

⚡ 2 improvements
✅ 192 untouched benchmarks

Benchmarks breakdown

Benchmark main magic-akari:refactor/typescript Change
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false 113.9 ms 110.4 ms +3.17%
es/visitor/base-perf/boxing_unboxed_clone 2.6 µs 2.5 µs +3.44%


let mut decl_id_record = AHashSet::<Id>::default();
fn visit_mut_assign_expr(&mut self, n: &mut AssignExpr) {
let is_lhs = mem::replace(&mut self.is_lhs, true);
Copy link
Member Author

Choose a reason for hiding this comment

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

@magic-akari
Copy link
Member Author

thread 'stack_overflow_tests__fixture__deno__stack_overflow__add_1__input_ts' has overflowed its stack
fatal runtime error: stack overflow
error: test failed, to rerun pass `-p swc_ecma_transforms --test deno`

I need help solving a stack overflow issue. @kdy1

@kdy1 kdy1 added this to the Planned milestone Oct 1, 2024
VarDeclKind::Let
};

let init_arg = 'init_arg: {
Copy link
Member

@kdy1 kdy1 Oct 1, 2024

Choose a reason for hiding this comment

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

Does this work with our MSRV? ()

Copy link
Member Author

Choose a reason for hiding this comment

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

This feature has been introduced for a long time, and I expect it to work on MSRV.
https://rust-lang.github.io/rfcs/2046-label-break-value.html

@kdy1
Copy link
Member

kdy1 commented Oct 1, 2024

I'm investigating stack overflow issue.
image

@magic-akari magic-akari marked this pull request as ready for review October 2, 2024 06:00
@magic-akari magic-akari requested review from a team as code owners October 2, 2024 06:00
@kdy1 kdy1 merged commit 2480bb0 into swc-project:main Oct 4, 2024
155 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

add /*#__PURE__*/ for ts enum Enable unused Typescript enums to be removed by minifiers
2 participants