-
Notifications
You must be signed in to change notification settings - Fork 326
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
Move to ES Modules #147
base: next
Are you sure you want to change the base?
Move to ES Modules #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to support ESM here without needing to support both ESM + CJS. But this will need to be a part of a major release. We should also update the dependencies being require
d here.
Any update on this? |
As far as I know, this branch is working and I'm not sure what the timeline is on being merged. I'll go through and make the dependencies use ESM import though to resolve the changes requested by @web-mech . |
Just moved everything over to ESM in this PR! |
Fantastic, thanks for that @reesericci! I'll keep an eye out on the next release |
Thanks @reesericci , will see if we can merge this in soon |
Adds support for use as an ESM module with the following syntax:
import Filter from 'badwords'