usage one:
// main.js
import bar from "bar.js"
import "foo.js"
console.log(bar)
//foo.js
import bar from "bar.js"
bar.foo = "foo"
//bar.js
export default bar
usage 2:
// main.js
import bar from "foo.js"
console.log(bar)
//foo.js
import bar from "bar.js"
bar.foo = "foo"
export default bar
//bar.js
export default bar
what are the main differences between the two packaged webpack? How should I choose?