Better HN
topnewbestaskshowjobs
Log inSign up

wagi_ch

8 karma · joined Apr 13, 2017 (9y ago) · 1 submissions

Submissions

comment 9y ago · link · parent

I've been using `allowSyntheticDefaultImports` which does some magic behind the scenes for you to be able to use `import flatten from 'lodash/flatten'` making it really easy to use modules that don't define default exports.

So far (a bit unexpectedly) I didn't really run into any nasty side-effects or things that went wrong with it.

See https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in... for a (short) explanation.