3 ms·
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 i
by wagi_ch 9y ago
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-TypeScript#support-for-default-import-interop-with-systemjs https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in... for a (short) explanation.