From dc60e87d373faab3f9ec13d3b43a2c0c9ba1d1cb Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Mon, 16 Jan 2017 21:13:40 +0100 Subject: [PATCH 1/2] #99 polyfill Object.values for old browsers --- app/package.json | 2 +- app/webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 08b9bfb..515e59a 100644 --- a/app/package.json +++ b/app/package.json @@ -26,7 +26,6 @@ }, "homepage": "https://github.com/hjacobs/kube-ops-view#readme", "dependencies": { - "pixi-display": "^1.0.1", "pixi.js": "^4.3.2", "webpack-dev-server": "^1.16.2" }, @@ -35,6 +34,7 @@ "babel-loader": "^6.2.10", "babel-preset-es2015": "^6.18.0", "babel-runtime": "^6.20.0", + "babel-plugin-transform-runtime": "^6.15.0", "brfs": "^1.4.3", "eslint": "^3.13.1", "eslint-loader": "^1.6.1", diff --git a/app/webpack.config.js b/app/webpack.config.js index 65427ed..915284c 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -29,7 +29,7 @@ module.exports = { {test: /\.js$/, loader: 'eslint-loader', exclude: /node_modules/} ], loaders: [ - {test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader', query: {presets: ['es2015']}}, + {test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader', query: {plugins: ['transform-runtime'], presets: ['es2015']}}, {test: /\.html$/, exclude: /node_modules/, loader: 'file-loader?name=[path][name].[ext]'}, {test: /\.jpe?g$|\.svg$|\.png$/, exclude: /node_modules/, loader: 'file-loader?name=[path][name].[ext]'}, {test: /\.json$/, exclude: /node_modules/, loader: 'json'}, From 4bc207f0c22b38cf3fc1fc6a071624ff012a44d4 Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Mon, 16 Jan 2017 22:03:34 +0100 Subject: [PATCH 2/2] #99 follow babel6 guide --- app/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 515e59a..422d411 100644 --- a/app/package.json +++ b/app/package.json @@ -27,13 +27,13 @@ "homepage": "https://github.com/hjacobs/kube-ops-view#readme", "dependencies": { "pixi.js": "^4.3.2", - "webpack-dev-server": "^1.16.2" + "babel-runtime": "^6.20.0", + "babel-polyfill": "^6.20.0" }, "devDependencies": { "babel-core": "^6.21.0", "babel-loader": "^6.2.10", "babel-preset-es2015": "^6.18.0", - "babel-runtime": "^6.20.0", "babel-plugin-transform-runtime": "^6.15.0", "brfs": "^1.4.3", "eslint": "^3.13.1",