kamiyo / multi-progress-bars

A multi progress bar library for CLI, with support for indefinite task spinners
MIT License
27 stars 4 forks source link

chore: use `.mjs` rather than `.es.js` for ESModule build output file #16

Open starpit opened 3 years ago

starpit commented 3 years ago

Due to the "type": "commonjs" in the package.json, webpack will assume that any .js file is in CommonJS module format. We can address this by instead using .mjs for ESModule build output. This is the standard extension, it seems [1].

Fixes #15

[1] https://stackoverflow.com/a/57492606/5270773

kamiyo commented 2 years ago

Thanks for this - I had to update some stuff and fix the naming of the cjs one, so I bundled it into the latest release. See if v4.1.0 works.