Skip to content

[Bug]: optimization.inlineConst: { pass: 2 } causes non-constants to be inlined #6246

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

0, 1 to be output when running the output bundle.

What is actually happening?

0, 0 is output when running the output bundle.

System Info

REPL 1.0.0-beta.38

Any additional comments?

With #6207, pass will at least be 2 if exported noop functions exists. So that would cause more users to encounter this bug. The real world code I encountered is https://github.com/thysultan/stylis/blob/master/src/Tokenizer.js

maybe related to #6101

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions