次のような構成が与えられた場合、webpackは異なる結果を生成しますか?
// webpack.config.js
module.exports = {
...
entry: {
main: ['./index.js'],
}
}
// index.js
import 'babel-polyfill'
...
対。
// webpack.config.js
module.exports = {
...
entry: {
main: ['babel-polyfill', './index.js'],
}
}
// index.js
// babel-polyfill import removed
...
どちらが好まれますか、またその理由は何ですか?