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

IIFE is not unwrapped if it has a pure annotation #1463

Open
gtm-nayan opened this issue Oct 19, 2023 · 0 comments
Open

IIFE is not unwrapped if it has a pure annotation #1463

gtm-nayan opened this issue Oct 19, 2023 · 0 comments
Labels
compress Issue in the compression step suboptimal-output

Comments

@gtm-nayan
Copy link

gtm-nayan commented Oct 19, 2023

Bug report or Feature request?

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

Complete CLI command or minify() options used
https://try.terser.org/
with options

{
  module: true,
  compress: { passes: 3, inline: true },
  mangle: {},
  output: {},
  parse: {},
  rename: {},
}

terser input

export const a = (() => 2)();
export const b = /* @__PURE__ */(() => 3)();

terser output or error

export const a=2;export const b=(()=>3)();

Expected result

export const a=2;export const b=3;
@fabiosantoscode fabiosantoscode added suboptimal-output compress Issue in the compression step labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compress Issue in the compression step suboptimal-output
Projects
None yet
Development

No branches or pull requests

2 participants