multi-progress-bars icon indicating copy to clipboard operation
multi-progress-bars copied to clipboard

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

Open starpit opened this issue 4 years ago • 1 comments

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

starpit avatar Aug 03 '21 21:08 starpit

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.

kamiyo avatar Nov 09 '21 06:11 kamiyo