mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Browser: Use babel-polyfill to support new ES6 built-ins in older browsers (#3900)
This commit is contained in:
parent
a5e60706a2
commit
a27d1b3d86
@ -44,8 +44,6 @@ import Web from './js/web'
|
|||||||
window.Web = Web
|
window.Web = Web
|
||||||
|
|
||||||
import storage from 'local-storage-fallback'
|
import storage from 'local-storage-fallback'
|
||||||
import objectAssign from 'es6-object-assign'
|
|
||||||
objectAssign.polyfill()
|
|
||||||
|
|
||||||
const store = applyMiddleware(thunkMiddleware)(createStore)(reducer)
|
const store = applyMiddleware(thunkMiddleware)(createStore)(reducer)
|
||||||
const Browse = connect(state => state)(_Browse)
|
const Browse = connect(state => state)(_Browse)
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"babel-loader": "^6.2.5",
|
"babel-loader": "^6.2.5",
|
||||||
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
|
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
|
||||||
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
||||||
|
"babel-polyfill": "^6.23.0",
|
||||||
"babel-preset-es2015": "^6.14.0",
|
"babel-preset-es2015": "^6.14.0",
|
||||||
"babel-preset-react": "^6.11.1",
|
"babel-preset-react": "^6.11.1",
|
||||||
"babel-register": "^6.14.0",
|
"babel-register": "^6.14.0",
|
||||||
@ -67,7 +68,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^3.3.6",
|
"bootstrap": "^3.3.6",
|
||||||
"classnames": "^2.2.3",
|
"classnames": "^2.2.3",
|
||||||
"es6-object-assign": "^1.0.3",
|
|
||||||
"font-awesome": "^4.7.0",
|
"font-awesome": "^4.7.0",
|
||||||
"humanize": "0.0.9",
|
"humanize": "0.0.9",
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
|
@ -22,6 +22,7 @@ var purify = require("purifycss-webpack-plugin")
|
|||||||
var exports = {
|
var exports = {
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
entry: [
|
entry: [
|
||||||
|
"babel-polyfill",
|
||||||
path.resolve(__dirname, 'app/index.js')
|
path.resolve(__dirname, 'app/index.js')
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
@ -100,6 +101,7 @@ var exports = {
|
|||||||
|
|
||||||
if (process.env.NODE_ENV === 'dev') {
|
if (process.env.NODE_ENV === 'dev') {
|
||||||
exports.entry = [
|
exports.entry = [
|
||||||
|
"babel-polyfill",
|
||||||
'webpack/hot/dev-server',
|
'webpack/hot/dev-server',
|
||||||
'webpack-dev-server/client?http://localhost:8080',
|
'webpack-dev-server/client?http://localhost:8080',
|
||||||
path.resolve(__dirname, 'app/index.js')
|
path.resolve(__dirname, 'app/index.js')
|
||||||
|
Loading…
Reference in New Issue
Block a user