In response to #26 this PR adds a hybrid ES module and CommonJS build using Rollup's multi-input plugin, and multiple build configurations. The ESM output will rename all files to .esm.js and maps those correctly in the respective package.json files.
Further testing required to see if this resolves issues with ESM in Vite.
Overview
In response to #26 this PR adds a hybrid ES module and CommonJS build using Rollup's
multi-input
plugin, and multiple build configurations. The ESM output will rename all files to.esm.js
and maps those correctly in the respectivepackage.json
files.Further testing required to see if this resolves issues with ESM in Vite.