chartist icon indicating copy to clipboard operation
chartist copied to clipboard

ECMA script module support

Open yesparthasarathy opened this issue 3 years ago • 1 comments

Hi,

We are using the Chartist library in our Angular 10 project. we are getting below error

WARNING in depends on 'chartist'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Can you please make chartist as ECMA module ?

yesparthasarathy avatar Dec 08 '20 00:12 yesparthasarathy

I thing this is expected in todays days and age. With the like of wepback, parcel and so on we can take the advantage of treeshaking to reduce the bundle.

How you solved your problem. I am just including it the old way by adding it to angular.json?

technbuzz avatar Jun 15 '21 06:06 technbuzz

Since version 1.0 Chartist supports ESM and is tree-shakable. : )

Arantiryo avatar Sep 05 '22 19:09 Arantiryo