Skip to content

CJS -> ESM migration :: Ready #12619

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

Closed
wants to merge 196 commits into from
Closed

Conversation

carlosmiei
Copy link
Collaborator

@carlosmiei carlosmiei commented Apr 3, 2022

PR that aims to migrate the current module system (CommonJS) to esm, due to the added benefits of this system (security, tree shaking, ...)

MIgrated components:

  • Base Exchange
  • Derived exchanges
  • Tests
  • Transpiling/building/version scripts
  • Cli
  • all examples
  • ...

Not migrated:

  • Static dependencies will remain as cjs for now, since the cost of migrating them from scratch is too high. ESM is backward compatible so they still work properly.

To do:

  • We still need to discover the best way to bundle this mixed modules system
  • How to make npm package hybrid

@@ -12,20 +24,20 @@
},
"repository": {
"type": "git",
"url": "https://github.com/ccxt/ccxt.git"
"url": "https://github.com/carlosmiei/ccxt/tree/esm-migration"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this lol

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frosty00 ofc 😅 I changed it because I needed to publish it to be consumed by ccxt.pro
https://www.npmjs.com/package/ccxt-esm

@farzadso
Copy link

farzadso commented Aug 7, 2023

Will this ever be merged? :D

@carlosmiei
Copy link
Collaborator Author

@farzadso This was merged a long time ago in a different PR 🙂 : #14282

@carlosmiei carlosmiei closed this Aug 7, 2023
@farzadso
Copy link

farzadso commented Aug 7, 2023

@carlosmiei Thanks for clarifying this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants