@oroinc/oro-webpack-config-builder 6.1.0-lts0 → 6.1.0-lts02

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.
@@ -27,6 +27,7 @@ const validation = require('./validation');
27
27
  const EventEmitter = require('events');
28
28
  const ErrorHandler = require('./error-handler');
29
29
  const SVGSprite = require('./svg-sprite');
30
+ const TerserPlugin = require('terser-webpack-plugin');
30
31
  require('resolve-url-loader');
31
32
  require('lezer-loader');
32
33
 
@@ -290,7 +291,20 @@ class ConfigBuilder {
290
291
  cacheGroups: {
291
292
  defaultVendors: false
292
293
  }
293
- }
294
+ },
295
+ minimize: true,
296
+ minimizer: [new TerserPlugin({
297
+ parallel: true,
298
+ extractComments: false,
299
+ minify: TerserPlugin.swcMinify,
300
+ terserOptions: {
301
+ compress: true,
302
+ mangle: true,
303
+ format: {
304
+ comments: false
305
+ }
306
+ }
307
+ })]
294
308
  },
295
309
  resolveLoader: {
296
310
  modules: [
@@ -423,7 +437,10 @@ class ConfigBuilder {
423
437
  // Additional setting for production mode
424
438
  if (this._isProduction) {
425
439
  webpackConfig.devtool = false;
426
- webpackConfig.plugins.push(new CssMinimizerPlugin());
440
+ webpackConfig.plugins.push(new CssMinimizerPlugin({
441
+ parallel: true,
442
+ minify: CssMinimizerPlugin.esbuildMinify
443
+ }));
427
444
  }
428
445
 
429
446
  return webpackConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oroinc/oro-webpack-config-builder",
3
- "version": "6.1.0-lts0",
3
+ "version": "6.1.0-lts02",
4
4
  "author": "Oro, Inc. (https://oroinc.com)",
5
5
  "license": "MIT",
6
6
  "description": "An integration of OroPlatform based applications with the Webpack.",
@@ -9,6 +9,7 @@
9
9
  "@babel/core": "~7.23.3",
10
10
  "@babel/plugin-transform-runtime": "~7.21.0",
11
11
  "@babel/preset-env": "~7.21.2",
12
+ "@swc/core": "^1.11.8",
12
13
  "autoprefixer": "~10.4.13",
13
14
  "babel-loader": "~9.1.0",
14
15
  "bindings": "~1.5.0",
@@ -17,6 +18,7 @@
17
18
  "deepmerge": "~4.3.1",
18
19
  "exports-loader": "~4.0.0",
19
20
  "expose-loader": "~4.1.0",
21
+ "esbuild-loader": "^4.3.0",
20
22
  "file-loader": "~6.2.0",
21
23
  "html-webpack-plugin": "~5.5.0",
22
24
  "imports-loader": "~4.0.1",
@@ -31,20 +33,21 @@
31
33
  "printf": "~0.6.0",
32
34
  "resolve-url-loader": "^5.0.0",
33
35
  "rtlcss-webpack-plugin": "~4.0.6",
34
- "sass": "~1.83.0",
36
+ "sass": "~1.85.0",
35
37
  "sass-loader": "~13.2.0",
36
38
  "schema-utils": "^4.0.0",
37
39
  "style-loader": "~3.3.1",
38
40
  "svgo": "^3.0.2",
39
41
  "svgstore": "^3.0.1",
40
- "terser": "~5.17.1",
42
+ "terser": "~5.39.0",
43
+ "terser-webpack-plugin": "^5.3.13",
41
44
  "text-loader": "0.0.1",
42
45
  "underscore": "1.13.*",
43
46
  "url-loader": "~4.1.1",
44
- "webpack": "~5.80.0",
45
- "webpack-bundle-analyzer": "~4.8.0",
46
- "webpack-cli": "~5.0.0",
47
- "webpack-dev-server": "^4.11.1",
47
+ "webpack": "~5.98.0",
48
+ "webpack-bundle-analyzer": "~4.10.2",
49
+ "webpack-cli": "~6.0.0",
50
+ "webpack-dev-server": "^5.2.0",
48
51
  "webpack-merge": "~5.8.0",
49
52
  "wildcard": "~2.0.0"
50
53
  }