Skip to content
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

前端模块化规范 | HZFE - 剑指前端 Offer #47

Open
utterances-bot opened this issue Oct 29, 2021 · 2 comments
Open

前端模块化规范 | HZFE - 剑指前端 Offer #47

utterances-bot opened this issue Oct 29, 2021 · 2 comments
Assignees

Comments

@utterances-bot
Copy link

前端模块化规范 | HZFE - 剑指前端 Offer

相关问题

https://febook.hzfe.org/awesome-interview/book1/js-module-specs

Copy link

按照上下文来看
“Tree shaking 是一个通常用于描述移除” 是否会是 “Tree Shaking 是一个通常用于描述移除” 这个大写?

Akiq2016 added a commit that referenced this issue Nov 14, 2021
Copy link

CMD 的缺点“难以支持模块静态分析”不太认同,因为是在浏览器端运行,如果不能进行静态分析,sea.js 自己也是无法运行,因为并不能像 Node.js 那样在执行 require(...) 时暂停当前模块的执行。所以其实 sea.js 也是要先分析并加载当前模块的所有依赖模块,但与 AMD 不同的是,只在有具体的 require() 调用相关模块时才执行对应模块的代码(如果是第一次调用),而非提前执行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants