@nx/webpack 19.4.1 → 19.5.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": "19.4.1",
3
+ "version": "19.5.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": {
@@ -32,6 +32,7 @@
32
32
  "dependencies": {
33
33
  "@babel/core": "^7.23.2",
34
34
  "@phenomnomnominal/tsquery": "~5.0.1",
35
+ "@module-federation/sdk": "^0.2.3",
35
36
  "ajv": "^8.12.0",
36
37
  "autoprefixer": "^10.4.9",
37
38
  "babel-loader": "^9.1.2",
@@ -65,9 +66,9 @@
65
66
  "webpack-dev-server": "^4.9.3",
66
67
  "webpack-node-externals": "^3.0.0",
67
68
  "webpack-subresource-integrity": "^5.1.0",
68
- "@nx/devkit": "19.4.1",
69
- "@nx/js": "19.4.1",
70
- "@nrwl/webpack": "19.4.1"
69
+ "@nx/devkit": "19.5.0-beta.0",
70
+ "@nx/js": "19.5.0-beta.0",
71
+ "@nrwl/webpack": "19.5.0-beta.0"
71
72
  },
72
73
  "publishConfig": {
73
74
  "access": "public"
@@ -13,7 +13,14 @@ class WebpackNxBuildCoordinationPlugin {
13
13
  if (!skipInitialBuild) {
14
14
  this.buildChangedProjects();
15
15
  }
16
- this.startWatchingBuildableLibs();
16
+ if ((0, client_1.isDaemonEnabled)()) {
17
+ this.startWatchingBuildableLibs();
18
+ }
19
+ else {
20
+ output_1.output.warn({
21
+ title: 'Nx Daemon is not enabled. Buildable libs will not be rebuilt on file changes.',
22
+ });
23
+ }
17
24
  }
18
25
  apply(compiler) {
19
26
  compiler.hooks.beforeCompile.tapPromise('IncrementalDevServerPlugin', async () => {
@@ -1,4 +1,5 @@
1
1
  import type { NormalModuleReplacementPlugin } from 'webpack';
2
+ import type { moduleFederationPlugin } from '@module-federation/sdk';
2
3
  export type ModuleFederationLibrary = {
3
4
  type: string;
4
5
  name: string;
@@ -33,6 +34,7 @@ export interface ModuleFederationConfig {
33
34
  shared?: SharedFunction;
34
35
  additionalShared?: AdditionalSharedConfig;
35
36
  }
37
+ export type NxModuleFederationConfigOverride = Omit<moduleFederationPlugin.ModuleFederationPluginOptions, 'exposes' | 'remotes' | 'name' | 'library' | 'shared' | 'filename' | 'remoteType'>;
36
38
  export type WorkspaceLibrarySecondaryEntryPoint = {
37
39
  name: string;
38
40
  path: string;