-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPM missing source #6138
Comments
Yes, because Also, we switched to rollup and now import CSS in our code via a rollup plugin. So even if the |
Sadly I'm a little late here but I just wanted to let you folks know, that I also was using the Now I would have to create a seperate custom chart.js library with only the modules I need and build my own custom release or include the chart.js sources in my project what i don't want to do. 😢 I'm sorry that I've missed the discussions in #6105 Is there a chance to bring back the |
@mojoaxel I understand your point and I'm sorry to read that we broke your integration. I don't think it's a good idea to re-inject our sources in the npm package because you shouldn't rely on it for many reasons. We should be able to rename/move/delete whatever file under I would rather try to find a way to generate an ESM build that supports tree-shaking (#5179) so you could import exactly what you need. |
Alternatively (but not ideal), you could install Chart.js from GitHub directly:
// package.json
{
"dependencies": {
"chart.js": "https://github.com/chartjs/Chart.js/tarball/v2.8.0"
}
} So you will get the '/src' folder and be able to use it at your own risk. |
@simonbrunel Thanks for your quick answer ❤️
That's a good point! Of course I never expected that, but others may do so.
👍 That, of course would be the ideal solution. I'll try to monitor #5179 and adopt accordingly. |
Documentation Is:
Please Explain in Detail...
In npm packet version 2.8.0-rc.1 and 2.8.0 missing source code. There is only a folder
dist
. Is this what was meant?The text was updated successfully, but these errors were encountered: