package dependency cleanup (#330)

* update npm packages.  babel 7, redux 4, etc

* remove obsolete babel config file

* use correct icons
This commit is contained in:
Bruce Martin
2018-10-15 17:36:13 -07:00
committed by Colin Megill
parent 65f5244ff7
commit 6b0aafd27c
12 changed files with 3673 additions and 4352 deletions
+7 -3
View File
@@ -3,8 +3,12 @@ module.exports = {
cacheDirectory: true,
presets: [
["modern-browsers", { loose: true, modules: false }],
"stage-0",
"react"
"@babel/preset-react"
],
plugins: ["babel-plugin-transform-decorators-legacy"]
plugins: [
"@babel/plugin-proposal-function-bind",
"@babel/plugin-proposal-class-properties",
["@babel/plugin-proposal-decorators", { legacy: true }],
"@babel/plugin-proposal-export-namespace-from"
]
};
+7 -5
View File
@@ -2,12 +2,14 @@ module.exports = {
babelrc: false,
presets: [
["modern-browsers", { loose: true, modules: false }],
"stage-0",
"react"
"@babel/preset-react"
],
plugins: [
"babel-plugin-transform-react-constant-elements",
"babel-plugin-transform-decorators-legacy",
"babel-plugin-transform-runtime"
"@babel/plugin-proposal-function-bind",
"@babel/plugin-proposal-class-properties",
["@babel/plugin-proposal-decorators", { legacy: true }],
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-transform-react-constant-elements",
"@babel/plugin-transform-runtime"
]
};
-13
View File
@@ -1,13 +0,0 @@
module.exports = {
babelrc: false,
presets: [
["modern-browsers", { loose: true, modules: false }],
"stage-0",
"react"
],
plugins: [
"babel-plugin-transform-react-constant-elements",
"babel-plugin-transform-decorators-legacy",
"babel-plugin-transform-runtime"
]
};
@@ -1,6 +1,5 @@
// jshint esversion: 6
const path = require("path");
const autoprefixer = require("autoprefixer");
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
@@ -39,12 +38,6 @@ module.exports = {
importLoaders: 1,
localIdentName: "[name]__[local]___[hash:base64:5]"
}
},
{
loader: "postcss-loader",
options: {
plugins: () => []
}
}
]
},
@@ -1,6 +1,5 @@
// jshint esversion: 6
const path = require("path");
const autoprefixer = require("autoprefixer");
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
@@ -45,14 +44,6 @@ module.exports = {
importLoaders: 1,
localIdentName: "[name]__[local]___[hash:base64:5]"
}
},
{
loader: "postcss-loader",
options: {
plugins: function() {
return [];
}
}
}
]
},
@@ -104,5 +95,9 @@ module.exports = {
cacheId: "cellxgene",
filename: "service-worker.js"
})
]
],
performance: {
maxEntrypointSize: 750000,
maxAssetSize: 750000
}
};