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

Move initialization into declaration when they're back-to-back #1441

Open
bbrk24 opened this issue Sep 6, 2023 · 0 comments
Open

Move initialization into declaration when they're back-to-back #1441

bbrk24 opened this issue Sep 6, 2023 · 0 comments

Comments

@bbrk24
Copy link

bbrk24 commented Sep 6, 2023

Bug report or Feature request?

Feature request

Version (complete output of terser -V or specific git commit)

terser 5.19.3

Complete CLI command or minify() options used

{
  module: false,
  compress: {},
  mangle: {},
  output: {},
  parse: {},
  rename: {},
}

That is, the default options for the online REPL but with module: false.

terser input

var x;
x = 1;

var y;
y = undefined;

terser output or error

var x,y;x=1,y=void 0;

Expected result

var x=1,y;
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

No branches or pull requests

1 participant