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
CLI behavior incorrectly invoked by importing ecstatic in ES modules #226
Comments
ugh. I have no interest in explicitly supporting experimental features (I think es modules are kinda dumb if I can be real) but feel free to submit a pull request. |
most likely the move is to just factor that code out into a cli.js and update npm accordingly. Relatively straightforward, I'm just lazy. |
Was about to write up that suggestion, I'll try to get around to it this weekend |
Sounds good! |
Should be fixed by #242 |
Move bin behavior out of lib/ecstatic.js, fix #226
Fixed in 4.0.0 |
Importing a module should not trigger the CLI.
This is due to module.parent being null from imports into ES modules.
node: 10.8.0
node --experimental-modules example.mjs
example.mjs:
Console:
The text was updated successfully, but these errors were encountered: