Closed mkxml closed 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.
Exporting with zcomponent.es.js. Modern web package managers should handle it automatically via jsnext:main or module keywords in package.json.
zcomponent.es.js
jsnext:main
module
package.json
We should export an ES module along with the normal CommonJS module so people using modern tools can benefit from things like tree shaking.