简体   繁体   English

ES6模块加载器是标准的一部分吗?

[英]Is ES6 module loader part of standard?

I want to clarify this issue. 我想澄清一下这个问题。

Some articles on the net says that ES6 module loader is part of the ES6 standard. 网上的一些文章称ES6模块加载器是ES6标准的一部分。 But I cannot find proves in the ES6 draft. 但我无法在ES6草案中找到证明。 But if ES6 module loader isn't part of the standard, how it's supposed to conditionally/dynamically load dependencies? 但是如果ES6模块加载器不是标准的一部分,它应该如何有条件地/动态地加载依赖项?

After a short investigation I found an answer. 经过短暂的调查,我找到了答案。

There is no ES6 module loader specification in final draft. 最终草案中没有ES6模块加载器规范。 It only describes how modules should be loaded. 它仅描述了应如何加载模块。

But there is WHATWG ES module loader spec, which is far better than nothing and for me it fits to stick with. 但是有WHATWG ES模块加载器规格,这比没有好,对我来说它很适合坚持。

Related links: WHATWG loader specification: https://whatwg.github.io/loader/ Related GitHub discussion: https://github.com/ModuleLoader/es6-module-loader/issues/378 相关链接:WHATWG加载器规范: https ://whatwg.github.io/loader/相关GitHub讨论: https//github.com/ModuleLoader/es6-module-loader/issues/378

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM