Browser: Use babel-polyfill to support new ES6 built-ins in older browsers (#3900)

This commit is contained in:
Rushan
2017-03-15 03:32:20 +05:30
committed by Harshavardhana
parent a5e60706a2
commit a27d1b3d86
3 changed files with 3 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ var purify = require("purifycss-webpack-plugin")
var exports = {
context: __dirname,
entry: [
"babel-polyfill",
path.resolve(__dirname, 'app/index.js')
],
output: {
@@ -100,6 +101,7 @@ var exports = {
if (process.env.NODE_ENV === 'dev') {
exports.entry = [
"babel-polyfill",
'webpack/hot/dev-server',
'webpack-dev-server/client?http://localhost:8080',
path.resolve(__dirname, 'app/index.js')