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

[译] [PJA] [507] Harmony 的模块机制 #38

Open
cssmagic opened this issue Sep 29, 2013 · 2 comments
Open

[译] [PJA] [507] Harmony 的模块机制 #38

cssmagic opened this issue Sep 29, 2013 · 2 comments
Labels

Comments

@cssmagic
Copy link
Owner

cssmagic commented Sep 29, 2013

[译] [PJA] [507] Harmony 的模块机制

Harmony Modules

Harmony 的模块机制

None of the module systems discussed so far are included in the official ECMAScript specifications. In the future, a module system will be built-in to all ECMA-compliant JavaScript engines.

目前为止我们所讨论到的模块机制都并没有收录进官方的 ECMAScript 规范中。但在未来,将会有一个模块系统内建到所有兼容 ECMA 规范的 JavaScript 引擎中。

The Harmony module specification hasn't stabilized yet, but when it does, it should be possible to write harmony modules and compile using build tools to fall back on the module pattern, AMD, and CommonJS where required.

Harmony 的模块规范现在还没有稳定,但一旦它稳定下来,我们应该就能编写 Harmony 模块;在必要时,还可以通过构建工具的编译操作,降级到模块模式、AMD 和 CommonJS 的模块机制。(译注:以便适配那些尚未支持 Harmony 模块规范的环境。)

Harmony module build tools are already beginning to appear, but since the specification is likely to change, you should probably wait a bit longer before you start to rely on them for your production applications.

Harmony 模块构建工具已经开始出现了,但由于规范还有可能变动,在将这些工具投入生产之前,你可能还需要再等一等。


© Creative Commons BY-NC-ND 4.0   |   我要订阅   |   我要打赏

@taotao365s
Copy link

hi.
Can you share this ebook Programming JavaScript Applications ? or give me a link?

3ks

@cssmagic
Copy link
Owner Author

@spy1988 Source link can be found in this index page.

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

No branches or pull requests

2 participants