8000 An opt-in way to warn on `include` · Issue #1045 · melange-re/melange · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
An opt-in way to warn on include #1045
Open
@jchavarri

Description

@jchavarri

Using include in melange builds can be problematic, as any definitions in the included modules get duplicated. If this happens inside a submodule, where all these definitions are put into a JS object, it can have an impact on bundle size, as bundlers won't be able to dead-code eliminate any of them.

Example

I wonder if there could be a way to optionally enable some warnings on melc when include is used, explaining this problem in detail.

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

      0