@nx/webpack 17.2.3 → 17.2.5

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/README.md CHANGED
@@ -1,4 +1,9 @@
1
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
2
7
 
3
8
  <div style="text-align: center;">
4
9
 
@@ -15,9 +20,9 @@
15
20
 
16
21
  <hr>
17
22
 
18
- # Nx: Smart, Fast and Extensible Build System
23
+ # Nx: Smart Monorepos · Fast CI
19
24
 
20
- Nx is a next generation build system with first class monorepo support and powerful integrations.
25
+ Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
21
26
 
22
27
  This package is a [Webpack plugin for Nx](https://nx.dev/packages/webpack).
23
28
 
@@ -59,5 +64,5 @@ npx nx@latest init
59
64
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
60
65
 
61
66
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
62
- width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
67
+ width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
63
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "17.2.3",
3
+ "version": "v17.2.5",
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": {
@@ -62,9 +62,9 @@
62
62
  "webpack-dev-server": "^4.9.3",
63
63
  "webpack-node-externals": "^3.0.0",
64
64
  "webpack-subresource-integrity": "^5.1.0",
65
- "@nx/devkit": "17.2.3",
66
- "@nx/js": "17.2.3",
67
- "@nrwl/webpack": "17.2.3"
65
+ "@nx/devkit": "v17.2.5",
66
+ "@nx/js": "v17.2.5",
67
+ "@nrwl/webpack": "v17.2.5"
68
68
  },
69
69
  "publishConfig": {
70
70
  "access": "public"
@@ -37,8 +37,8 @@ async function* devServerExecutor(serveOptions, context) {
37
37
  // Only add the dev server option if user is composable plugin.
38
38
  // Otherwise, user should define `devServer` option directly in their webpack config.
39
39
  if (typeof userDefinedWebpackConfig === 'function' &&
40
- (0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig) &&
41
- !buildOptions.standardWebpackConfigFunction) {
40
+ ((0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig) ||
41
+ !buildOptions.standardWebpackConfigFunction)) {
42
42
  config = await userDefinedWebpackConfig({ devServer }, {
43
43
  options: buildOptions,
44
44
  context,
@@ -32,8 +32,8 @@ async function getWebpackConfigs(options, context) {
32
32
  ? (0, config_1.composePluginsSync)((0, with_nx_1.withNx)(options), (0, with_web_1.withWeb)(options))
33
33
  : (0, with_nx_1.withNx)(options))({}, { options, context });
34
34
  if (typeof userDefinedWebpackConfig === 'function' &&
35
- (0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig) &&
36
- !options.standardWebpackConfigFunction) {
35
+ ((0, config_1.isNxWebpackComposablePlugin)(userDefinedWebpackConfig) ||
36
+ !options.standardWebpackConfigFunction)) {
37
37
  // Old behavior, call the Nx-specific webpack config function that user exports
38
38
  return await userDefinedWebpackConfig(config, {
39
39
  options,
@@ -39,7 +39,7 @@ function handleArrayRemote(remote, remoteEntryExt, isRemoteGlobal) {
39
39
  : '';
40
40
  // if the remote is defined with anything other than http then we assume it's a promise based remote
41
41
  // In that case we should use what the user provides as the remote location
42
- if (remoteLocation.startsWith('http')) {
42
+ if (!remoteLocation.startsWith('promise new Promise')) {
43
43
  return `${globalPrefix}${baseRemote}/remoteEntry.${remoteEntryExt}`;
44
44
  }
45
45
  else {