Skip to content

BUG: Module.Submodule does not get dead_code removed, but Module does. #138

Description

@jaeh

Fix:
src/lib/babel has a dead_code removal function, which does not detect Module.SubModule after it removed Module.

This is a bug if a @magic-modules is installed and then not used in the pages.

fix: only parse the used and unused tags in dead_code, pass them back, then remove them in one step, together with CHECK_PROPS.

this will also allow removal of actions, effects, subscriptions, libraries and other dead code that the default dead code elimination and treeshaking can not detect.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions