Skip to content

Unexpected code after tree-shake #6264

@Birowsky

Description

@Birowsky

Do you want to request a feature or report a bug?
Either a bug or unclear docs.

What is the current behavior?
Given entry is the entry module:
screen shot 2018-01-08 at 17 19 34

It just uses function1 from external1 module.

I expected that external1.function2 and the whole external2 module would be eliminated.

However, my output includes external2.function1. Just.. why?

Here's a repo of the whole thing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions