Skip to content

Allow import for side effects only #61

@fstanis

Description

@fstanis

There are modules which I want to import only for the side effects they provide - in this case I only really need require("module"); and not var module = require("module"); - would this make sense to add?

I was thinking of something like void=module resulting in dropping the var, but then it occurred this would mean only one of these would be possible (since we can't have duplicate keys). Perhaps something like ~module would work? Happy to do a PR, if there are no objections.

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