CommonJS was amazing but statically analysable imports are the killer feature of ES6 modules. Start using them today http://exploringjs.com/es6/ch_modules.html …
@dan_abramov dynamic exports assignment isn't that common and if you want static analysis then you'll just use them statically
-
-
@dan_abramov i mean it's useful that es2015 modules don't allow it but using them just for that is kinda unnecessary -
@sebmck ES6-first bundles (Rollup, Webpack 2) offer tree shaking because they can rely on modules never being dynamic. - 11 more replies
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.
he/him 