@emarketeer/ts-microservice-commons 2.9.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
14
14
|
};
|
|
15
|
+
var TerserPlugin = require('terser-webpack-plugin');
|
|
15
16
|
var path = require('path');
|
|
16
17
|
var webpack = require('webpack');
|
|
17
|
-
var ESBuildPlugin = require('esbuild-minimizer-webpack-plugin').default;
|
|
18
18
|
var optionalDependencies = ['pg', 'mysql2'];
|
|
19
19
|
var additionalExternals = [];
|
|
20
20
|
for (var _i = 0, optionalDependencies_1 = optionalDependencies; _i < optionalDependencies_1.length; _i++) {
|
|
@@ -60,7 +60,14 @@
|
|
|
60
60
|
},
|
|
61
61
|
optimization: {
|
|
62
62
|
minimize: true,
|
|
63
|
-
minimizer: [
|
|
63
|
+
minimizer: [
|
|
64
|
+
new TerserPlugin({
|
|
65
|
+
minify: TerserPlugin.swcMinify,
|
|
66
|
+
terserOptions: {
|
|
67
|
+
minify: true
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
]
|
|
64
71
|
},
|
|
65
72
|
plugins: [new webpack.IgnorePlugin(/^pg-native$/)],
|
|
66
73
|
module: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emarketeer/ts-microservice-commons",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"bin": {
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"babel-loader": "^8.1.0",
|
|
102
102
|
"cross-env": "^6.0.0",
|
|
103
103
|
"cross-spawn": "^7.0.1",
|
|
104
|
-
"esbuild-minimizer-webpack-plugin": "^1.0.0-beta.2",
|
|
105
104
|
"eslint": "^6.5.1",
|
|
106
105
|
"eslint-config-airbnb-base": "14.0.0",
|
|
107
106
|
"eslint-plugin-import": "^2.18.2",
|
|
@@ -116,6 +115,7 @@
|
|
|
116
115
|
"serverless": "^2.57.0",
|
|
117
116
|
"serverless-plugin-lambda-insights": "^1.0.8",
|
|
118
117
|
"serverless-webpack": "^5.6.0",
|
|
118
|
+
"terser-webpack-plugin": "4.2.3",
|
|
119
119
|
"ts-jest": "^26.4.3",
|
|
120
120
|
"ts-loader": "8.3.0",
|
|
121
121
|
"typescript": "^4.4.2",
|