I am using javascript with webpack4 and babel7. I am confused about using import * from '' and import * as '' from ''.
for below code:
import tbc from `tbc`
the tbc instance will have a default property and I have to use tbc.default.xxx. Based on my understanding, it should be equal to import {default as lib } from 'lib';. But why does it have a default property?
But below code will allow me to use all properties from tbc, such as tbc.xxx.
import * as tbc from `tbc`
I wonder when I should use import * from.