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

Fix #363 by removing imports of ohm-js from extras (it’s not required) #366

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

pdubroy
Copy link
Contributor

@pdubroy pdubroy commented Feb 28, 2022

The problem described in #363 occurs because the import of ohm-js pulls in the ES module, while ohm-js/extras is a CommonJS module. (This is the dual-package hazard.)

This PR eliminates the import of ohm-js from the extras module. It's not really required: it was only used for instanceof checks and we can skip those and instead check that the methods we need actually exist.

@pdubroy pdubroy merged commit 4dae27a into master Feb 28, 2022
@pdubroy pdubroy deleted the fix-363 branch February 28, 2022 09:07
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.

1 participant