8000 Effectful imports should ignore sideEffects field · Issue #6571 · webpack/webpack · GitHub
[go: up one dir, main page]

Skip to content 10000
Effectful imports should ignore sideEffects field #6571
@Andarist

Description

@Andarist

Do you want to request a feature or report a bug?

feature

What is the current behavior?

import 'list/fantasy-land'

with

sideEffects: false

does not include imported file in the bundle, which is somewhat OK

If the current behavior is a bug, please provide the steps to reproduce.

not a bug

What is the expected behavior?

this import is clearly effectful, so it actually IMHO should not get dropped regardless of the sideEffects

If this is a feature request, what is motivation or use case for changing the behavior?

described in expected behaviour

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

webpack@4, others - irrelevant

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