Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor for bundling tools #2258

Open
bguiz opened this issue Apr 11, 2024 · 0 comments
Open

feat: refactor for bundling tools #2258

bguiz opened this issue Apr 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bguiz
Copy link
Contributor

bguiz commented Apr 11, 2024

Problem

  • when I try to use Javascript build/ bundle tools, such as bun build/ parcel/ rollup/ webpack
  • there is a need to import or require the entire SDK
  • there is no option to import or require only the specific parts of the SDK that my application needs to use.
  • the size of the bundle including the SDK is unnecessarily large when my application only uses a small fraction of it

Solution

  • refactor the SDK code base such that it enables, and is optimised for:
    • specific imports
    • tree-shaking in JS build/ bundle tools
  • provide documentation on recommended usage with common JS build/ bundle tools
    • e.g. provide a webpack.config.js file for developers using webpack

Alternatives

Refs

@bguiz bguiz added the enhancement New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant