I think the goal there was avoiding having to parse the whole file before knowing how to do the module loading.
-
-
So what you're saying is native modules will never support `main` in package.json? Because that's implicit and not explicit. Now when I want to use `foobar` package I'll have to do `./node_modules/foobar/path/to/main.mjs`? Good luck with that. I'll use `babel-node` over that ugly
-
I literally just said “we’re working on making that happen” in this very thread…https://twitter.com/mathias/status/996143144646266880 …
- 4 more replies
New conversation -
-
-
This is not a very good maxim. Detection > Trust
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.