Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using ES Modules into webpack config Close #214
webpackの設定ファイルにおいてES Modulesを使うようにする。 webpackの設定ファイルはこれまでBabelで変換したりはせずに直接Node.jsで実行していた。 webpackの設定ファイルは拡張子を変更することによって事前に変換を施してから使われる。 そのためwebpackの設定ファイルの拡張子を`.js`から`.babel.js`に変更して、 Babelでトランスパイルを事前に行わせるようにする。 それによってES Modulesも使えるようになる。
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters