Skip to content

Enable tree-shaking #137

Description

@mmktomato

Predecessor: #88

The import-based tree-shaking isn't fully effective as we provide Backlog class for now.
So I suggest a new way that we provide functions instead of the class.

// Current
import Backlog from "backlog-js";
const backlog = new Backlog(/* ... */);
const issue = await backlog.getIssue(/* ... */);

// Proposed
import { getIssue } from "backlog-js";
const issue = await getIssue(/* ... */);

Note: Backlog class should be remained for backward compatibility.

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