Skip to content

Make package tree-shakeable #40

Description

@szacskesz

I am using webpack to bundle my code. It can remove unused code by the process called tree-shaking, but it can only do it if the code is side effect free, and and ES6 module.

For this I propose to mark the package side effect free by including "sideEffects": false in the package.json.
Also convert the code to proper ES module syntax by only using import / export instad of module.exports, export = ..., etc.

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