metabase / metabase/metabase

[Task] Remove dependencies that we don't need in the package.json of the sdk

Open
#49,655 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.Task Embedding/SDK
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

**Context**
https://metaboat.slack.com/archives/C063Q3F1HPF/p1730969278072639?thread_ts=1730968803.487599&cid=C063Q3F1HPF

At the moment we bundle all of the dependencies in the bundle, but we also list them as dependencies in the sdk package.json.

Unless we dynamically `require` the packages, we should be able to remove them from the package.json with the added benefits that:
- the install time/size of sdk users should go down as they don't install extra deps not used
- we should remove a lot of warnings about deps from the output of customers trying out the sdk

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the SDK's package.json and the configuration that creates its bundle. Check each listed dependency for dynamic require usage, then identify which dependencies are already included in the bundle and can be removed from the package manifest. Confirm that the SDK still bundles correctly and that its install output no longer includes unnecessary dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.