1, the installation babel-polyfill
package;
npm install babel-polyfill --save-dev
2, the main.js
introduction of the file babel-polyfill
;
import 'babel-polyfill'
3, the build folder webpack.base.config.js
will be entry
in the app: './src/main.js'
configuration
app: './src/main.js'
app: ['babel-polyfill', './src/main.js']
read: ;
Once configured, re-package upload, it can display properly in IE browser