Exclude peer dependencies from bundle size

Open
#2,829 8 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
build-system

Research direction

Start by reviewing the linked ion-phaser configuration and the related ion-phaser issue, then trace how Stencil calculates bundle size and handles peer dependencies. Done means peer dependencies are excluded from the package bundle size without breaking the component build.

Written by the indexing model from the issue text.

Description

Bug: Validated

Stencil version:

@stencil/core@2.4.0

I'm submitting a:

Current behavior:
Peer dependencies are included from bundle size

Expected behavior:
Exclude peer dependencies from the bundle of the package. not sure if this is a bug instead, please let me know

Steps to reproduce:
Check the issue related here: https://github.com/proyecto26/ion-phaser/issues/18

Related code:
Please check the configuration of this stencil component https://github.com/proyecto26/ion-phaser

Other information:
There's no guide to fix these types of problems

Thanks in advance for your help!

Dominant language
TypeScript
Stars
13.1k
Forks
855
Avg merge
4h 7m
Merged PRs (30d)
44

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.

More from stenciljs/core

All issues in stenciljs/core

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.