Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Feature: Decrease bundle size by including only specified methods #154

@styxlab

Description

@styxlab

I am using the js-client with Next.js and the netlifyAPI class increases my bundle size by approx. 20 KB, although I am using just a few methods. This is too much for a typical SPA and should be reduced. I have not found a way to include only the methods I actually need, which would substantially reduce the bundle size.

I think the problem is that all methods specified are exported:

module.exports.methods = getOperations()

const { paths } = require('@netlify/open-api')

Feature request: Implement a configuration option which allows only to include pre-specified methods with the aim to substantially reduce bundle size.

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