我试图在javascript中生成一个小的角度2应用程序,没有任何模块加载器 . 所以我需要在我的index.html中包含umd脚本,如:

<script src="node_modules/@angular/compiler/bundles/compiler.umd.js"></script>
<script src="node_modules/rxjs/bundles/Rx.js"></script> 
<script src="node_modules/@angular/core/bundles/core.umd.js"></script>

是否有某种逻辑来确定与官方打字稿文档中提到的typescripts模块导入相对应的所有.js文件?

例如:

  • 我知道(来自官方的角度2文档),打字稿应用程序依赖于' @angular/core ' module. For this I should include the associated bundle: ' node_modules/@angular/core/bundles/core.umd.js ' .

  • 深入了解'@angular/core'模块我发现它依赖于包含rxjs库的所有子模块的' rxjs/observable/merge ' module. But for this module the associated umd bundle file is not ' node_modules \ rxjs \ observable \ merge.js ' (because this is not in the UMD format), but the corresponding umd bundle is ' node_modules\rxjs\bundles\Rx.js ' .

  • Angular材料取决于' @angular/common/http ',因为关联的包可以在“ node_modules/@angular/common/bundles/common-http.umd.js ”中找到

是否有任何标准算法来确定与特定模块关联的umd bundle js文件?