simplajs/simpla

Create ES module build

Open

#74 建立於 2017年10月4日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)JavaScript (530 star) (38 fork)batch import
enhancementgood first issue

描述

Currently the module field on package.json points to src/simpla.js but really it should point to a separate build, that's been transpiled, but not bundled. This means that whatever module bundling system consumers are using will still be used, but it won't need to be transpiled. As it currently stands, users can come up against this bug but more generally it'll require them to transpile our source, not just bundle it.

An interim measure would be to change where module points to - just the transpiled, bundled simpla.js in root. The main reason behind giving users an ES module target is so they can tree shake, but as we only have one default export, Simpla, this is pretty redundant.

貢獻者指南