@nx/webpack 19.3.1 → 19.3.2
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": "19.3.
|
|
3
|
+
"version": "19.3.2",
|
|
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,9 +64,9 @@
|
|
|
64
64
|
"webpack-dev-server": "^4.9.3",
|
|
65
65
|
"webpack-node-externals": "^3.0.0",
|
|
66
66
|
"webpack-subresource-integrity": "^5.1.0",
|
|
67
|
-
"@nx/devkit": "19.3.
|
|
68
|
-
"@nx/js": "19.3.
|
|
69
|
-
"@nrwl/webpack": "19.3.
|
|
67
|
+
"@nx/devkit": "19.3.2",
|
|
68
|
+
"@nx/js": "19.3.2",
|
|
69
|
+
"@nrwl/webpack": "19.3.2"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
package/src/plugins/plugin.js
CHANGED
|
@@ -150,9 +150,9 @@ function normalizeOutputPath(outputPath, projectRoot) {
|
|
|
150
150
|
}
|
|
151
151
|
function normalizeOptions(options) {
|
|
152
152
|
return {
|
|
153
|
-
buildTargetName: options
|
|
154
|
-
serveTargetName: options
|
|
155
|
-
serveStaticTargetName: options
|
|
156
|
-
previewTargetName: options
|
|
153
|
+
buildTargetName: options?.buildTargetName ?? 'build',
|
|
154
|
+
serveTargetName: options?.serveTargetName ?? 'serve',
|
|
155
|
+
serveStaticTargetName: options?.serveStaticTargetName ?? 'serve-static',
|
|
156
|
+
previewTargetName: options?.previewTargetName ?? 'preview',
|
|
157
157
|
};
|
|
158
158
|
}
|
|
@@ -48,7 +48,7 @@ function getRemotes(devRemotes, skipRemotes, config, context, pathToManifestFile
|
|
|
48
48
|
devkit_1.logger.info(`Remotes not served automatically: ${[...remotesToSkip.values()].join(', ')}`);
|
|
49
49
|
}
|
|
50
50
|
const knownRemotes = Array.from(collectedRemotes).filter((r) => !remotesToSkip.has(r));
|
|
51
|
-
const knownDynamicRemotes = dynamicRemotes.filter((r) => !remotesToSkip.has(r));
|
|
51
|
+
const knownDynamicRemotes = dynamicRemotes.filter((r) => !remotesToSkip.has(r) && context.projectGraph.nodes[r]);
|
|
52
52
|
devkit_1.logger.info(`NX Starting module federation dev-server for ${chalk.bold(context.projectName)} with ${[...knownRemotes, ...knownDynamicRemotes].length} remotes`);
|
|
53
53
|
const devServeApps = new Set(!devRemotes
|
|
54
54
|
? []
|