@nx/webpack 16.6.0-beta.8 → 16.7.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "16.6.0-beta.8",
3
+ "version": "16.7.0-beta.0",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.",
6
6
  "repository": {
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.22.9",
33
- "@nrwl/webpack": "16.6.0-beta.8",
34
- "@nx/devkit": "16.6.0-beta.8",
35
- "@nx/js": "16.6.0-beta.8",
33
+ "@nrwl/webpack": "16.7.0-beta.0",
34
+ "@nx/devkit": "16.7.0-beta.0",
35
+ "@nx/js": "16.7.0-beta.0",
36
36
  "autoprefixer": "^10.4.9",
37
37
  "babel-loader": "^9.1.2",
38
38
  "browserslist": "^4.21.4",
@@ -73,5 +73,5 @@
73
73
  "access": "public"
74
74
  },
75
75
  "types": "./index.d.ts",
76
- "gitHead": "d1d06349e703d903ac47fb7adc7d250ce140d77e"
76
+ "gitHead": "bda51652665181d38894e7ed910151e60176a9be"
77
77
  }
@@ -4,7 +4,7 @@ exports.PostcssCliResources = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const loader_utils_1 = require("loader-utils");
6
6
  const path = require("path");
7
- const url = require("url");
7
+ const url = require("node:url");
8
8
  function wrapUrl(url) {
9
9
  let wrappedUrl;
10
10
  const hasSingleQuotes = url.indexOf("'") >= 0;
@@ -246,7 +246,7 @@ function withNx(pluginOptions) {
246
246
  }
247
247
  exports.withNx = withNx;
248
248
  function createLoaderFromCompiler(options) {
249
- var _a, _b, _c;
249
+ var _a;
250
250
  switch (options.compiler) {
251
251
  case 'swc':
252
252
  return {
@@ -309,8 +309,9 @@ function createLoaderFromCompiler(options) {
309
309
  babelConfig.options['babelrc'] = true;
310
310
  }
311
311
  else {
312
- babelConfig.options['configFile'] =
313
- (_c = (_b = babelConfig.options) === null || _b === void 0 ? void 0 : _b['babelConfig']) !== null && _c !== void 0 ? _c : path.join(options.root, options.projectRoot, '.babelrc');
312
+ babelConfig.options['configFile'] = options.babelConfig
313
+ ? path.join(options.root, options.babelConfig)
314
+ : path.join(options.root, options.projectRoot, '.babelrc');
314
315
  }
315
316
  return babelConfig;
316
317
  default: