gpt4 book ai didi

javascript - 哪个核心代码负责编译此插件中的 JavaScript

转载 作者:行者123 更新时间:2023-12-03 07:38:13 24 4
gpt4 key购买 nike

最近我正在浏览plunker compiler ,我以前没有使用过mongodb,并且不想设置它来了解编译器是如何工作的。所以,我想知道,我如何设置这个项目,删除 mongodb 适配器,仅使用核心编译功能,还有,有人可以指出我负责编译 angularjs 和其他 javascript 框架代码的代码吗?

最佳答案

I have not used mongodb before, and do not wish to set it up for understanding how the compiler is working.

Plunker 运行服务器不依赖 mongo。当它渲染 plunk 时,它会从 Plunker API 服务器中提取它们 defined here .

can anybody point me to the code that is responsible for compiling the angularjs and other javascript framework codes?

Plunker 运行服务器实际上并不编译像 Angular 和其他框架这样的库。当 Plunker 包目录将这些框架添加到 Plunk 时,它会注入(inject) <script src="http://.."></script><link rel="stylesheet" href="http://..">标签进入 index.html 。由于这些代码可以在公共(public) URL 上获取,因此当您预览工作时,您的浏览器将从这些位置提取它们,并且根本不涉及 Plunker 运行服务器。

至于其他情况下发生的编译,如described in the README ,第

关于javascript - 哪个核心代码负责编译此插件中的 JavaScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35519989/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com