me-foundation / magicdrop

MagicDrop is a collection of EVM minting protocols that enable the multi stage minting, per stage WL management, per stage supply limit, and crossmint support.
MIT License
54 stars 37 forks source link

Build ESM module for npm #65

Closed mi-yu closed 1 year ago

mi-yu commented 1 year ago

Export both commonjs and ES module in npm bundle. ES module can help reduce javascript bundle sizes for users of @magiceden-oss/erc721m with its improved tree-shaking capabilities. Roughly follows Looksrare's SDK bundling config: https://github.com/LooksRare/looksrare-sdk/blob/master/rollup.config.js