isbn3
isbn3 copied to clipboard
code refresh
Modern frameworks complains a lot about commonjs, so I have refreshed the codebase:
- [x] migrating the sourcecode to EMS
- [x] updating tests imports and filenames
- [x] migrating bundler to
esbuild
- [x] including
dist
folder to git - [x] creating 2 versions of dist version. ESM (browser) and CJS (node)
- [x] setting package.json to pick the right version of dist file (therefore there should be no regressions or incompatibilities compared to the previous version)
- [x] updated scripts to build with
esbuild
TODOS
- [x] migrate
update_groups.js
- [x] probably
bin
scripts need to be migrated too - [ ] build new
dist
at every release - [ ] imho this should be a major release, just to avoid any inconvenience
- [ ] check
ISBN
in window global, idk if esbuild has on options for this
So basically everything is the same from the outside, plus there is the mjs module and some dependencies has been updated.