covalent
covalent copied to clipboard
[Bug] echarts themes get treeshaken on production builds
Bug Report
When running ng serve --prod the themes get treeshaken
particularly this line of code
https://github.com/Teradata/covalent/blob/e2fc638969a5fc86e8673e9afb58d43ebe2ff12c/src/platform/echarts/base/base.module.ts#L20
What is the expected behavior?
Themes should still be bundled when building the application.
Other information
We need to figure out a different way to register the themes if the current way is considered tree shakable.
Either have the users always add that line, add docs about it and we remove the call, or we make it work in all scenarios.