![An Intro To Using npm and ES6 Modules for Front End Development](https://cdn-ak-scissors.b.st-hatena.com/image/square/93a0c9164c44eb31b6fec14b14f1ff5bc017fdd5/height=288;version=1;width=512/https%3A%2F%2Fwesbos.com%2F.netlify%2Ffunctions%2Fogimage%3Ftitle%3DAn%2BIntro%2BTo%2BUsing%2Bnpm%2Band%2BES6%2BModules%2Bfor%2BFront%2BEnd%2BDevelopment%26url%3Dhttps%253A%252F%252Fwesbos.com%252Fjavascript-modules%26thumbnail%3D%252Fstatic%252Fbf7f37b1f17b314f6be686cbd37bf1e3%252Fes6-NPM.png)
警告 以下でのモジュールの説明はトランスパイラであるBabel 5,6で動作を確認した振舞いについての記述です。2015年11月現時点で、ECMAScriptのモジュール仕様策定範囲は、本来の全体範囲のまだ一部であるとのことです。その状況でのBabelの実装は、良く言えば先行的、悪く言えば将来そのままである保証はなく、現時点でも他のES2015をサポートする処理系との間での相互運用の保証はありません。また、現時点でBabelのモジュール機能を使うこと自体にリスクがあるという意見もあります。CommonJS側からBabelが生成したモジュールをCommon JSモジュールとして読み込もうとしたときの互換の問題として、Babel5で可能だったことがBabel6では利用不可になる、といったことも起きているようです。 そこらへんを含めて解説されているこちらの資料が参考になります。 (2015/11
Warning: This blog post is outdated. Instead, read chapter “Modules” in “JavaScript for impatient programmers”. At the end of July 2014, TC39 [1] had another meeting, during which the last details of the ECMAScript 6 (ES6) module syntax were finalized. This blog post gives an overview of the complete ES6 module system. Module systems for current JavaScript # JavaScript does not have built-in supp
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く