You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add typescript files into webpack fileDependencies in transpileOnly mode? #783
in my ts-loader config, if I don't enable transpileOnly, demo.ts file will be included in webpack fileDependencies (I assume it is from this part https://github.com/TypeStrong/ts-loader/blob/master/src/index.ts#L302), but if I enable transpileOnly, demo.ts won't be include in my webpack fileDependencies
I wonder is there an way that I can enable transpileOnly and demo.ts is still in webpack fileDependencies?
I'm pretty sure the answer is "no". I think you've already noticed but there's essentially 2 modes of operation for ts-loader. transpileOnly or not. transpileOnly doesn't register file dependencies. I'm not sure if it can anyway because of the exposed API it is using. Do feel free to have a play and report back!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
johnnyreilly commentedon May 31, 2018
I'm pretty sure the answer is "no". I think you've already noticed but there's essentially 2 modes of operation for ts-loader.
transpileOnlyor not.transpileOnlydoesn't register file dependencies. I'm not sure if it can anyway because of the exposed API it is using. Do feel free to have a play and report back!MQuy commentedon May 31, 2018
thanks, I actually played around with ts-loader but cannot find a way to make it work :(
stale commentedon Jan 19, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commentedon Jan 26, 2019
Closing as stale. Please reopen if you'd like to work on this further.