[英]When using typescript framework all sources are compiled in node_modules
當我使用它時,我習慣於將 go 轉換為框架的源代碼。 所以我嘗試安裝用typescript編寫的nestjs。 按照有關如何生成新應用程序的說明進行操作后,我注意到node_modules/@nestjs
中該框架的所有源代碼都已編譯為 javascript 並且無法查看實際的 typescript 源代碼。
有什么方法可以查看 typescript 包的源代碼嗎?
You can't view the typescript in node_modules
because when a typescript package is published, if a developer is publishing it properly, they are publishing the compiled JavaScript. 唯一發布的 Typescript 應該是用於分型的d.ts
文件。 要查看原始源代碼,請在 GitHub 上找到項目。 否則,編譯后的 JavaScript 在node_modules
中始終可用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.