@nx/webpack 18.1.0-beta.1 → 18.1.0-beta.10

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": "18.1.0-beta.1",
3
+ "version": "18.1.0-beta.10",
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": {
@@ -63,9 +63,9 @@
63
63
  "webpack-dev-server": "^4.9.3",
64
64
  "webpack-node-externals": "^3.0.0",
65
65
  "webpack-subresource-integrity": "^5.1.0",
66
- "@nx/devkit": "18.1.0-beta.1",
67
- "@nx/js": "18.1.0-beta.1",
68
- "@nrwl/webpack": "18.1.0-beta.1"
66
+ "@nx/devkit": "18.1.0-beta.10",
67
+ "@nx/js": "18.1.0-beta.10",
68
+ "@nrwl/webpack": "18.1.0-beta.10"
69
69
  },
70
70
  "publishConfig": {
71
71
  "access": "public"
@@ -12,7 +12,10 @@ function configurationGenerator(tree, options) {
12
12
  exports.configurationGenerator = configurationGenerator;
13
13
  async function configurationGeneratorInternal(tree, options) {
14
14
  const tasks = [];
15
- options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
15
+ const nxJson = (0, devkit_1.readNxJson)(tree);
16
+ const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
17
+ nxJson.useInferencePlugins !== false;
18
+ options.addPlugin ??= addPluginDefault;
16
19
  const initTask = await (0, init_1.webpackInitGenerator)(tree, {
17
20
  ...options,
18
21
  skipFormat: true,
@@ -10,7 +10,10 @@ function webpackInitGenerator(tree, schema) {
10
10
  }
11
11
  exports.webpackInitGenerator = webpackInitGenerator;
12
12
  async function webpackInitGeneratorInternal(tree, schema) {
13
- schema.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
13
+ const nxJson = (0, devkit_1.readNxJson)(tree);
14
+ const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
15
+ nxJson.useInferencePlugins !== false;
16
+ schema.addPlugin ??= addPluginDefault;
14
17
  if (schema.addPlugin) {
15
18
  addPlugin(tree);
16
19
  }