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

Create esm and cjs bundles with microbundle. #88

Closed
wants to merge 1 commit into from

Conversation

TimMikeladze
Copy link

Couldn't get this package imported in a cjs project, so added a few updates to the build process. This closes #84

  • Create esm, cjs, umd, and modern bundles with microbundle.
  • Replace crypto with crypto-browserify and added events. Package will now work in the browser.
  • Add npm run build to part of github workflow.

I published a fork with these changes to npm as @tmikeladze/chess in order to use the package in my project.

@AirplanegoBrr
Copy link

Doesn't work with intellisense/IntelliCode, could this be fixed??

@brozeph
Copy link
Owner

brozeph commented Jul 20, 2023

Incorporating browser compatibility into #92

Feeling some reservations about microbundle... want to research this more before incorporating that. Going to close this PR, but thank you @TimMikeladze for the suggestions!

@brozeph brozeph closed this Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node-chess cannot be imported using common-js syntax
3 participants