Is it possible to import a module defined without a default export via: import module from 'module'; and compile it to commonjs?
This Stack Overflow Answer suggests that it is possible with the --allowSyntheticDefaultImports option passed (albeit only for systemjs modules?).
The Compiler Options Documentation states that allowSyntheticDefaultImports only affects typechecking.
Are there any work arounds besides the import * from module as 'module'; syntax?
import * from module as 'module'if it works?.d.tsfile. If the actual.jsfile defines a default export, then the.d.tsfile should contain that information and you'll likely import it usingimport module from 'module';If the actual.jsfile only defines named exports, then the.d.tsfile will reflect that and you import things using named imports or a wildcard import as mentioned in your post. TLDR: import syntax you use is determined by the shape of the actual JS module