What are the differences between
export * as bar from 'foo'
and
export { default as bar } from 'foo'
In my particular case, I've tried both of the followings, they all work, wonder the underlying differences between them.
// echarts v5.0.0
export * as ECharts from 'echarts/lib/echarts.js'
export { default as ECharts } from 'echarts/lib/echarts.js'
babel.config.js
module.exports = {
// "@vue/cli-plugin-babel": "~4.5.0",
presets: ['@vue/cli-plugin-babel/preset'],
}