@oroinc/oro-webpack-config-builder 5.1.0-alpha41 → 5.1.0-alpha42

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.
@@ -10,7 +10,6 @@ const LayoutModulesConfigLoader = require('./modules-config/layout-modules-confi
10
10
  const LayoutStyleLoader = require('./style/layout-style-loader');
11
11
  const MapModulesPlugin = require('./plugin/map/map-modules-plugin');
12
12
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
13
- const HappyPack = require('happypack');
14
13
  const ModulesConfigLoader = require('./modules-config/modules-config-loader');
15
14
  const DynamicImportsFileWriter = require('./writer/dynamic-imports-file-writer');
16
15
  const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
@@ -379,19 +378,7 @@ class ConfigBuilder {
379
378
  webpackConfig.plugins.push(new BundleAnalyzerPlugin());
380
379
  }
381
380
 
382
- if (!env.skipJS && !env.skipBabel) {
383
- const happyPackOptions = {
384
- id: 'babel',
385
- loaders: [
386
- {
387
- loader: 'babel-loader',
388
- options: this._babelConfig
389
- }
390
- ]
391
- };
392
-
393
- webpackConfig.plugins.push(new HappyPack(happyPackOptions));
394
-
381
+ if (!env.skipJS && env.useBabel) {
395
382
  webpackConfig.module.rules.push({
396
383
  test: /\.js$/,
397
384
  exclude: [
@@ -399,7 +386,10 @@ class ConfigBuilder {
399
386
  /[\/\\]node_modules[\/\\]/,
400
387
  /[\/\\]bundles[\/\\].+[\/\\]lib[\/\\]?/
401
388
  ],
402
- use: 'happypack/loader?id=babel'
389
+ use: {
390
+ loader: 'babel-loader',
391
+ options: this._babelConfig
392
+ }
403
393
  });
404
394
  }
405
395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oroinc/oro-webpack-config-builder",
3
- "version": "5.1.0-alpha41",
3
+ "version": "5.1.0-alpha42",
4
4
  "author": "Oro, Inc (https://www.oroinc.com)",
5
5
  "license": "MIT",
6
6
  "description": "An integration of OroPlatform based applications with the Webpack.",
@@ -10,7 +10,7 @@
10
10
  "@babel/plugin-transform-runtime": "~7.19.6",
11
11
  "@babel/preset-env": "~7.20.2",
12
12
  "autoprefixer": "~10.4.13",
13
- "babel-loader": "~8.3.0",
13
+ "babel-loader": "~9.1.0",
14
14
  "bindings": "~1.5.0",
15
15
  "css-loader": "~6.7.2",
16
16
  "css-minimizer-webpack-plugin": "~4.2.2",
@@ -19,7 +19,6 @@
19
19
  "expose-loader": "~4.0.0",
20
20
  "extract-loader": "~5.1.0",
21
21
  "file-loader": "~6.2.0",
22
- "happypack": "~5.0.1",
23
22
  "html-webpack-plugin": "~5.5.0",
24
23
  "imports-loader": "~4.0.1",
25
24
  "js-yaml": "~4.1.0",