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(ecma/codegen): don't print whitespaces for comments in minify mode #6465

Conversation

alexander-akait
Copy link
Collaborator

Description:

We don't need extra whitespace for comments when we print minified output

BREAKING CHANGE:

No

Related issue (if exists):

No

@alexander-akait alexander-akait marked this pull request as ready for review November 17, 2022 15:31
@kdy1 kdy1 added this to the Planned milestone Nov 18, 2022
@kdy1 kdy1 self-assigned this Nov 18, 2022
kdy1
kdy1 previously approved these changes Nov 18, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_ecma_codegen

@kdy1 kdy1 enabled auto-merge (squash) November 18, 2022 01:26
@alexander-akait
Copy link
Collaborator Author

@kdy1 Sounds like bug on CI (maybe cache)? No bugs on CI / Test node bindings - ubuntu-latest (pull_request) 😕

kdy1
kdy1 previously approved these changes Nov 18, 2022
@alexander-akait
Copy link
Collaborator Author

alexander-akait commented Nov 18, 2022

@kdy1 I really don't undestand when I run it locally it removes spaces (i.e. CI / Test node bindings - ubuntu-latest (pull_request) is green and I am in Ubuntu too), but when it is on CI - windows failed, maybe cache here (but ubuntu is file)? Really don't undestand, why OS changes it

@alexander-akait
Copy link
Collaborator Author

alexander-akait commented Nov 18, 2022

@kdy1 Can you remove CI cache for node bindings

@kdy1
Copy link
Member

kdy1 commented Nov 18, 2022

It's not problem of CI.
Use cargo patch to use correct version for testing

@alexander-akait
Copy link
Collaborator Author

alexander-akait commented Nov 18, 2022

@kdy1 But I think the problem is not on my side, if I remove whitespaces in tests it:

  • CI / Test node bindings - ubuntu-latest (pull_request) - Green
  • CI / Test node bindings - windows-latest (pull_request) - Red

If I return whitespaces, it:

  • CI / Test node bindings - ubuntu-latest (pull_request) - Red
  • CI / Test node bindings - windows-latest (pull_request) - Green

But I can do nothing with CI

@kdy1 kdy1 disabled auto-merge November 18, 2022 03:24
This reverts commit ac27afd.
@kdy1 kdy1 enabled auto-merge (squash) November 20, 2022 09:32
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 disabled auto-merge November 20, 2022 09:35
@kdy1 kdy1 enabled auto-merge (squash) November 20, 2022 09:36
@kdy1 kdy1 merged commit 08a9e21 into swc-project:main Nov 20, 2022
@alexander-akait alexander-akait deleted the fix-avoid-empty-spaces-for-comments-in-minify-mode branch November 20, 2022 12:20
@kdy1 kdy1 modified the milestones: Planned, v1.3.20 Nov 26, 2022
@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants