Skip to content
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

Switch to ES Modules #718

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Switch to ES Modules #718

wants to merge 9 commits into from

Conversation

davidlehn
Copy link
Member

work-in-progress

@aminya
Copy link

aminya commented Apr 27, 2021

Any update on this? Being able to tree-shake forge looks awesome.

- Partial conversion. Mostly keeping current API functional.
- Using 'esm' module for compatibility.
- Add new validators.js file to resolve circular references.
- Various lint fixes.
- "Make it work" changes. Needs further work and optimization.
- Update `package.json` to indicate a module.
- Export defaults as needed.
- Remove `require` calls.
- Fix `import`/`export` usage.
- Split out some node crypto usage into non-browser files.
- Rename `.js` files to `.cjs` as needed.
- Misc rebase and other fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants