-
Notifications
You must be signed in to change notification settings - Fork 58
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 version #58
Comments
@Bidek56 No - does it really matter if this library is using ES5 or ES6? We have more compatibility with older versions of node + no build process right now. Why would we change that? |
I think it does, b/c currently I can NOT do import without babel. import reqdir from 'require-dir'; |
You |
Then, what is "node --experimental-modules" for? |
Not es6! https://nodejs.org/api/esm.html |
It says: "Node.js contains support for ES Modules based upon the Node.js EP for ES Modules." |
@Bidek56
|
module.parent is undefined when trying to use with ECMAScript modules |
@brandonros See above comment - it is labeled experimental, I will update the package when it is finalized and marked as stable. |
Any updates on this? did someone find the replacement for this module, that works with ES6? thank you |
I'll reopen this, since it's been 3 years and this is no longer an experimental node feature. Likely to support modules requireDir will need to become an async function, so top-level await was needed. |
Are you planning to upgrade this library to ES6? Is there a similar version of this library written in ES6? Thanks
The text was updated successfully, but these errors were encountered: