-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ESM. #55
Comments
This was my first pass through the code and there are certainly better ways to do this, but it was something that resolved my issue quickly. So I would like to know what you think and if we can have support from ESM :) |
could you show a diff from the changes and how it will be deployed to NPM? |
Hi, here is a link with the diff. I didn't update to NPM. For now, I'm using this fork and an internal If you think the change is good enough and accept contributions I would consider making a PR, after any necessary adjustments. |
Currently all updated tests run successfully in ESM, but report a warning.
|
as I see, all import codes changed to ESM and |
I have two branches now:
I did the following in the item 1: When I import the ESM version that was generated from CJS (1), for some reason I still have a problem with the import:
With option 2, 100% In my fork I have the new As soon as I can I will continue looking at this. |
Hi @icebob, how are you?
I tried to use moleculer-io in an
ESM
project and I couldn't, so I decided to generate a port that is working well. The tests passed, although it displays a warning.In addition to making some adjustments to the code, I used
tsup
to generate, in addition to exporting, anESM
version, and also generate aCommonJS
version.I added the
build
script that will create the dist folder.My fork is here: https://github.com/524c/moleculer-io
If you could take a look and tell me what you think, I'd appreciate it.
The text was updated successfully, but these errors were encountered: