32e908abcb
* remove unused cryptographic implementations * update tooling Resolves: rhbz#1975437
81 lines
2.0 KiB
Diff
81 lines
2.0 KiB
Diff
diff --git a/package.json b/package.json
|
|
index 2284a2f..26bb09b 100644
|
|
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -58,5 +58,8 @@
|
|
"d3-selection": "^1.4.1",
|
|
"d3-transition": "^1.3.2",
|
|
"d3-dispatch": "^1.0.6"
|
|
+ },
|
|
+ "resolutions": {
|
|
+ "crypto-browserify": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz"
|
|
}
|
|
}
|
|
diff --git a/webpack.config.js b/webpack.config.js
|
|
index 7153477..e663cf1 100644
|
|
--- a/webpack.config.js
|
|
+++ b/webpack.config.js
|
|
@@ -19,7 +19,11 @@ module.exports = [{
|
|
filename: '[name].js',
|
|
library: 'flamegraph',
|
|
libraryExport: 'default',
|
|
- libraryTarget: 'umd'
|
|
+ libraryTarget: 'umd',
|
|
+ hashFunction: 'sha256',
|
|
+ },
|
|
+ node: {
|
|
+ crypto: false
|
|
},
|
|
plugins: [
|
|
new CopyWebpackPlugin([{
|
|
@@ -54,7 +58,11 @@ module.exports = [{
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
library: ['flamegraph', 'colorMapper'],
|
|
- libraryTarget: 'umd'
|
|
+ libraryTarget: 'umd',
|
|
+ hashFunction: 'sha256',
|
|
+ },
|
|
+ node: {
|
|
+ crypto: false
|
|
},
|
|
module: {
|
|
rules: [{
|
|
@@ -80,7 +88,11 @@ module.exports = [{
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
library: ['flamegraph', 'tooltip'],
|
|
- libraryTarget: 'umd'
|
|
+ libraryTarget: 'umd',
|
|
+ hashFunction: 'sha256',
|
|
+ },
|
|
+ node: {
|
|
+ crypto: false
|
|
},
|
|
module: {
|
|
rules: [{
|
|
@@ -101,7 +113,11 @@ module.exports = [{
|
|
entry: './template.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist', 'templates'),
|
|
- filename: 'bundle.js'
|
|
+ filename: 'bundle.js',
|
|
+ hashFunction: 'sha256',
|
|
+ },
|
|
+ node: {
|
|
+ crypto: false
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin({
|
|
@@ -131,5 +147,10 @@ module.exports = [{
|
|
use: ['style-loader', 'css-loader']
|
|
}
|
|
]
|
|
+ },
|
|
+ optimization: {
|
|
+ minimizer: [
|
|
+ new TerserPlugin()
|
|
+ ]
|
|
}
|
|
}]
|