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 cache in Host.getSourceFile #316
Comments
Looks like we need to add |
Or maybe possible to expose it as stream similar to .dts and give caching to users (other plugins)? |
Looks same #282 |
I don't think this is related to #282, though it is somewhat related to #190. When that's implemented, these definition files are apart of the input stream and all files from the input stream are cached and reused. Though, a cache could also be implemented on the location you pointed out. For me, this isn't worth the work but I would definitely accept PRs on this. |
gulp-typescript/lib/host.ts
Line 133 in 8421342
Expected behavior:
Use cache when reading d.ts files
Actual behavior:
I'm using create project option and trying to build angular2
When I change 1 file
/rootproject/src/scripts/services/name-list.service.ts
,I see that all below files from list are reading
text = fs.readFileSync(fileName).toString('utf8')
is called every time.I think, this call must be cached.
The text was updated successfully, but these errors were encountered: