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

master
Rushan 8 years ago committed by Harshavardhana
parent a5e60706a2
commit a27d1b3d86
  1. 2
      browser/app/index.js
  2. 2
      browser/package.json
  3. 2
      browser/webpack.config.js

@ -44,8 +44,6 @@ import Web from './js/web'
window.Web = Web
import storage from 'local-storage-fallback'
import objectAssign from 'es6-object-assign'
objectAssign.polyfill()
const store = applyMiddleware(thunkMiddleware)(createStore)(reducer)
const Browse = connect(state => state)(_Browse)

@ -26,6 +26,7 @@
"babel-loader": "^6.2.5",
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-polyfill": "^6.23.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-register": "^6.14.0",
@ -67,7 +68,6 @@
"dependencies": {
"bootstrap": "^3.3.6",
"classnames": "^2.2.3",
"es6-object-assign": "^1.0.3",
"font-awesome": "^4.7.0",
"humanize": "0.0.9",
"json-loader": "^0.5.4",

@ -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')

Loading…
Cancel
Save