z-kit / z-hello

The z-kit component template, starter point to create z-kit compatible components.
MIT License
1 stars 0 forks source link

Export ES module #5

Closed mkxml closed 7 years ago

mkxml commented 7 years ago

We should export an ES module along with the normal CommonJS module so people using modern tools can benefit from things like tree shaking.

mkxml commented 7 years ago

Exporting with zcomponent.es.js. Modern web package managers should handle it automatically via jsnext:main or module keywords in package.json.