posted: 2019/10/16
parcel2が来る前に不要なmainフィールドはpackage.jsonから消しておいた方が良さそう
もうすぐ出そうなparcelの2系をちょっと先行で試してみたところ、下記のようなエラーが出た
$ yarn parcel build src/index.html
Destination name index.js extension does not match bundle type "html"`下記のissueを見ると、どうも
mainフィールドを見ているからということがわかったが、しかし、
yarn init -yなどでファイル生成をすると下記のようにmainフィールドにはindex.jsが入ることが多い{
  "name": "some-package",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT"
}おそらく気にせず上記のようになっていることは多いはずで、気をつける必要がありそうだ。
