- Early work by Ihab Awad (Google) and Kris Kowal (FastSoft)
- 2009-09: 2nd draft of module strawman, still very close to "closures as modules",
export x = 42
Moved to Shopify/graphql-design-tutorial
I did some research into the package.json
"module"
field. I wrote some code to download all the the package.json
files from all the public packages in the NPM registry. Here are some findings:
941 public NPM packages use the "module"
field as of 2018-10-22.
Here are the top 30 packages, as ranked by number of public dependents (or see the full list):
Dependents | Package Name | "module" Field Value |
---|---|---|
16,286 | should | ./es6/should.js |
15,472 | sinon | ./pkg/sinon-esm.js |
import ReactDOM from "react-dom"; | |
export default ReactDOM.unstable_batchedUpdates; |
export function loadConfigModule(filename) { | |
// sub your own | |
return require(filename); | |
} | |
/** | |
* Modify a Webpack configuration by applying a mutator module/function. | |
* @param {Object} options | |
* @param {Object} options.config Webpack configuration object to modify in-place |
Copyright © <year>
<copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
If you're OK in having a node-esm
executable, please consider this solution.
#!/usr/bin/env sh
# the /usr/local/bin/node-esm executable
input_file=$1
shift
exec node --input-type=module - $@ <$input_file
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |