@nx/webpack 20.2.0-beta.3 → 20.2.0-beta.4

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": "20.2.0-beta.3",
3
+ "version": "20.2.0-beta.4",
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": {
@@ -65,8 +65,8 @@
65
65
  "webpack-dev-server": "^5.0.4",
66
66
  "webpack-node-externals": "^3.0.0",
67
67
  "webpack-subresource-integrity": "^5.1.0",
68
- "@nx/devkit": "20.2.0-beta.3",
69
- "@nx/js": "20.2.0-beta.3"
68
+ "@nx/devkit": "20.2.0-beta.4",
69
+ "@nx/js": "20.2.0-beta.4"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
@@ -7,12 +7,10 @@ const init_1 = require("../init/init");
7
7
  const has_plugin_1 = require("../../utils/has-plugin");
8
8
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
9
9
  const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
10
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
11
10
  function configurationGenerator(tree, options) {
12
11
  return configurationGeneratorInternal(tree, { addPlugin: false, ...options });
13
12
  }
14
13
  async function configurationGeneratorInternal(tree, options) {
15
- (0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'webpack', 'configuration');
16
14
  const tasks = [];
17
15
  const nxJson = (0, devkit_1.readNxJson)(tree);
18
16
  const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
@@ -4,14 +4,12 @@ exports.webpackInitGenerator = webpackInitGenerator;
4
4
  exports.webpackInitGeneratorInternal = webpackInitGeneratorInternal;
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
7
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
7
  const plugin_1 = require("../../plugins/plugin");
9
8
  const versions_1 = require("../../utils/versions");
10
9
  function webpackInitGenerator(tree, schema) {
11
10
  return webpackInitGeneratorInternal(tree, { addPlugin: false, ...schema });
12
11
  }
13
12
  async function webpackInitGeneratorInternal(tree, schema) {
14
- (0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'webpack', 'init');
15
13
  const nxJson = (0, devkit_1.readNxJson)(tree);
16
14
  const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
17
15
  nxJson.useInferencePlugins !== false;
@@ -96,6 +96,7 @@ function applyNxIndependentConfig(options, config) {
96
96
  config.experiments = { ...config.experiments, cacheUnaffected: true };
97
97
  config.ignoreWarnings = [
98
98
  (x) => IGNORED_WEBPACK_WARNINGS.some((r) => typeof x === 'string' ? r.test(x) : r.test(x.message)),
99
+ ...(config.ignoreWarnings ?? []),
99
100
  ];
100
101
  config.optimization = {
101
102
  ...config.optimization,