Do I need to include import "babel-polyfill"
to the top of each entry file, or is it enough to have babel-polyfill
rule just in webpack.config file? I am confused by polyfill docs and still getting following error: only one instance of babel-polyfill is allowed
My webpack.config in short:
entry1: ['babel-polyfill', 'homepage.js'],
entry2: ['babel-polyfill', 'not-homepage.js'],
entry3: ['babel-polyfill', 'contacts.js']