-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
ES6+ module #185
Comments
Sorry, I could have sworn I replied to this right after you opened it! I'd be happy to support importing |
I made an example of how I'd like to use ohm, that uses rollup to build stuff.... but it doesn't work. I am not familiar enough with how ohm is structured, or how commonjs / es6 modules work to fix the test case error. https://github.com/jedahan/requiring-ohm
It seems Failure is being inlined, so there is no |
An update, after some digging it looks like replacing the util.inherits with a universal module would help as well |
I've tested @jedahan, I do not know enough about Rollup to be able to help here. If there is something specific we can change that would help, please open a new issue and I'll see what I can do. |
I have the following message in my Angular project:
It seems ohm-js is not following the ES module standard, so maybe this issue could be reopened? |
@pdubroy It seems to fix the problem indeed, no more warning with that version |
@7185 Thanks for confirming! I've just published |
It would be great if ES6+ modules were supported and user could simply import the modules in a standard way. Any plans to do that? Thanks
The text was updated successfully, but these errors were encountered: