Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

babel-*の記述を"dependencies"から"devDependencies"に移動させる #59

@ykzts

Description

@ykzts

package.jsonの"dependencies"にビルドのためにのみ用いられるべきBabel関連のライブラリー (babel-*) が書かれている。本来であれば"devDependencies"に書かれるのが正しい。

これはHerokuなどの環境へデプロイさせる際にビルドなしに動作させるためにbabel-registerをproduction環境 (NODE_ENV=production) でも動作するようにしているためである。

ビルドされたものがキャッシュされるとはいえ、requireで別のファイルを読み込むごとにBabelの処理が実行されてしまう。速度の面であまりよろしい状況であるとは言えない。

babel-*"devDependencies"に移動し、デプロイ時にビルドを行うようにしたい。

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions