Conversation
|
Will this fix work for front-end and backend? We have a package from @AlCalzone that creates both packages: https://github.com/ioBroker/plugin-docker/blob/main/package.json#L24 |
|
Issues for front-end + back-end usage
Verdict This PR is not safe to merge as-is. The core concern -- front-end and back-end compatibility -- is not reliably addressed due to: ┌────────────────────────────────────────────┬──────────────────────────────────────────────────────┐ Recommended approach If the goal is front-end + back-end support, a cleaner approach would be:
The current package on master already works in bundlers (webpack/Vite/Rollup can consume CJS just fine), so the real benefit of ESM is |
|
I don't think I've time to work on those issues, so best would be if we close it. In my opinion, I would only ship ESM packages, if someone has a project wich uses CJS, the bundler will support the ESM package. I hate that the javascript ecosystem takes forever to switch to ESM... ;-) |
fixes #206