mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 10:58:12 +08:00
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:
committed by
Colin Megill
parent
65f5244ff7
commit
6b0aafd27c
@@ -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"
|
||||
]
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
};
|
||||
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user