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
Add resolved sources to shouldTransformCachedModule #4414
Conversation
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#should-transform-dependencies or load it into the REPL: |
Codecov Report
@@ Coverage Diff @@
## master #4414 +/- ##
=======================================
Coverage 98.75% 98.75%
=======================================
Files 204 204
Lines 7322 7322
Branches 2079 2079
=======================================
Hits 7231 7231
Misses 33 33
Partials 58 58
Continue to review full report at Codecov.
|
5fb2203
to
70a2b81
Compare
@lukastaegert sorry for posting that here but i found this commit and i am wondering because i saw that in a microsoft project and it was more a feature then a bug or anything else can there be a flag to store both? in the cache? so that the cache has the transformed and untransformed source. i guess that sounds strange for you as you will arrgument the files are already there why should we store them again? because the structure of the directorys changes and that shows me easy and good programatical process able where deep resolve problems do occure. (Resolve problems that do not produce errors) Eg: Wrong file resolved. also i am trying to turn rollup into the foundation of a universal loader like systemjs for modern environments that do not support diffrent resolve algos. Short storycan there be a option to also store untransformed sources in the cache dir? Short whyBig incremental builds with a lot of unknown 3rd party dependencies (CDN Provider) |
When you refer to the "cache dir", what are you talking about? If you refer to Rollup's |
@lukastaegert ok perfect was not sure if that is related thanks for the information i love that. |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
rollup/plugins#1038
Description
Another small addition to finalize the new commonjs plugin. In order to figure out if cached resolved ids changed, I need to add them to the shouldTransformCachedModule hook.