question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m submitting a … (check one with “x”)

[x] feature request

Current behavior Big bundle size. Nearly half of the size of the Angular framework.

Reproduction of the problem Run webpack bundle analyzer

What is the motivation / use case for changing the behavior? Reduce bundle size

  • ngx-charts version: x.x.x 7.0.1

  • Angular version: 2.x.x 5.2.0

Large bundle size for index file: image

I have to import the entire module to use this library. It would be nice to only import the features I am using.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:19
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
tobiso95commented, May 24, 2021

I am also having this problem. Importing only the PieChartModule results in an import of the whole package.

ngx-charts 18.0.1
angular 11.2.3
5reactions
marcoripa96commented, Apr 12, 2020

Hello, the same problem is happening to me. I’m including only PieChartModule and my component budle size spikes up. As soon as I remove the import the size goes back to normale.

The current version is 13.0.2, on Angular 9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bundlephobia | Size of npm dependencies
Bundlephobia helps you find the performance impact of npm packages. Find the size of any javascript package and its effect on your frontend...
Read more >
Slimming down your bundle size - LogRocket Blog
A critical part for improving frontend performance is to reduce the JavaScript bundle size that should be downloaded via the network.
Read more >
bundlejs - Online bundler + npm package bundle size checker
A quick and easy way to bundle, minify, and compress (gzip and brotli) your ts, js, jsx and npm projects all online, with...
Read more >
5 Methods to Reduce JavaScript Bundle Size - Bits and Pieces
4. Compressing Bundles. If your application bundle size increases and affects performance, you can compress them to reduce the size. Gzip and ...
Read more >
Analyze your React app's bundle size and reduce it using ...
As your React app gets larger, you may have to start worrying about its bundle size. An app's bundle size is the amount...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found