@nx/webpack 22.0.0-canary.20251006-738b06b → 22.0.0-canary.20251008-05ab516
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": "22.0.0-canary.
|
|
3
|
+
"version": "22.0.0-canary.20251008-05ab516",
|
|
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": {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"webpack-dev-server": "^5.2.1",
|
|
65
65
|
"webpack-node-externals": "^3.0.0",
|
|
66
66
|
"webpack-subresource-integrity": "^5.1.0",
|
|
67
|
-
"@nx/devkit": "22.0.0-canary.
|
|
68
|
-
"@nx/js": "22.0.0-canary.
|
|
67
|
+
"@nx/devkit": "22.0.0-canary.20251008-05ab516",
|
|
68
|
+
"@nx/js": "22.0.0-canary.20251008-05ab516"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"nx": "22.0.0-canary.
|
|
71
|
+
"nx": "22.0.0-canary.20251008-05ab516"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateDependencies,
|
|
1
|
+
import { CreateDependencies, CreateNodesV2 } from '@nx/devkit';
|
|
2
2
|
export interface WebpackPluginOptions {
|
|
3
3
|
buildTargetName?: string;
|
|
4
4
|
serveTargetName?: string;
|
|
@@ -11,6 +11,6 @@ export interface WebpackPluginOptions {
|
|
|
11
11
|
* @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
|
|
12
12
|
*/
|
|
13
13
|
export declare const createDependencies: CreateDependencies;
|
|
14
|
+
export declare const createNodes: CreateNodesV2<WebpackPluginOptions>;
|
|
14
15
|
export declare const createNodesV2: CreateNodesV2<WebpackPluginOptions>;
|
|
15
|
-
export declare const createNodes: CreateNodes<WebpackPluginOptions>;
|
|
16
16
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAIlB,aAAa,EAQd,MAAM,YAAY,CAAC;AAepB,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAeD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,oBAAoB,CA6B3D,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = exports.createDependencies = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculate-hash-for-create-nodes");
|
|
6
6
|
const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
|
|
@@ -28,7 +28,7 @@ const createDependencies = () => {
|
|
|
28
28
|
};
|
|
29
29
|
exports.createDependencies = createDependencies;
|
|
30
30
|
const webpackConfigGlob = '**/webpack.config.{js,ts,mjs,cjs}';
|
|
31
|
-
exports.
|
|
31
|
+
exports.createNodes = [
|
|
32
32
|
webpackConfigGlob,
|
|
33
33
|
async (configFilePaths, options, context) => {
|
|
34
34
|
const optionsHash = (0, file_hasher_1.hashObject)(options);
|
|
@@ -44,14 +44,7 @@ exports.createNodesV2 = [
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
];
|
|
47
|
-
exports.
|
|
48
|
-
webpackConfigGlob,
|
|
49
|
-
async (configFilePath, options, context) => {
|
|
50
|
-
devkit_1.logger.warn('`createNodes` is deprecated. Update your plugin to utilize createNodesV2 instead. In Nx 20, this will change to the createNodesV2 API.');
|
|
51
|
-
const normalizedOptions = normalizeOptions(options);
|
|
52
|
-
return createNodesInternal(configFilePath, normalizedOptions, context, {}, (0, ts_solution_setup_1.isUsingTsSolutionSetup)());
|
|
53
|
-
},
|
|
54
|
-
];
|
|
47
|
+
exports.createNodesV2 = exports.createNodes;
|
|
55
48
|
async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup) {
|
|
56
49
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
57
50
|
// Do not create a project if package.json and project.json isn't there.
|