-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #363 by removing imports of ohm-js from extras (it’s not required) (
#366) 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](https://nodejs.org/api/packages.html#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.
- Loading branch information
Showing
4 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters