Between .mjs and package.json: Both are viable technical solutions. The debate is about whether we want config vs convention.
-
-
@lbljeffmo same with require("lodash/array.js") -
@wycats Indeed -- that's kind of the point of the ".mjs" proposal: Know immediately what kind a module is by it's name. -
@lbljeffmo right, which makes this incorrecthttps://twitter.com/lbljeffmo/status/726236426510163968 … -
@wycats adding support (but not requirement) for require("./foo.mjs") does not the public interface, it amends the options for one -
@wycats *does not change the public interface -
@wycats require("./foo.js") means "CJS module" today -- nothing changes about that with addition of .mjs
End of conversation
New conversation -
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.