@nx/webpack 24.0.6 → 24.1.0-beta.1
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/dist/src/generators/configuration/configuration.js +0 -1
- package/dist/src/utils/config.js +1 -1
- package/dist/src/utils/deprecation.js +1 -1
- package/dist/src/utils/webpack/resolve-user-defined-webpack-config.js +6 -0
- package/dist/src/utils/with-nx.js +1 -1
- package/dist/src/utils/with-web.js +1 -1
- package/package.json +4 -4
|
@@ -47,7 +47,6 @@ function createWebpackConfig(tree, options) {
|
|
|
47
47
|
compiler: options.compiler ?? 'swc',
|
|
48
48
|
main: options.main ?? (0, devkit_1.joinPathFragments)(project.root, 'src/main.ts'),
|
|
49
49
|
tsConfig: options.tsConfig ?? (0, devkit_1.joinPathFragments)(project.root, 'tsconfig.app.json'),
|
|
50
|
-
webpackConfig: (0, devkit_1.joinPathFragments)(project.root, 'webpack.config.js'),
|
|
51
50
|
};
|
|
52
51
|
if (options.babelConfig) {
|
|
53
52
|
buildOptions.babelConfig = options.babelConfig;
|
package/dist/src/utils/config.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.nxWebpackComposablePlugin = 'nxWebpackComposablePlugin';
|
|
|
9
9
|
function isNxWebpackComposablePlugin(a) {
|
|
10
10
|
return a?.[exports.nxWebpackComposablePlugin] === true;
|
|
11
11
|
}
|
|
12
|
-
// TODO(v25): remove the inert config-helper stubs in this file.
|
|
12
|
+
// TODO(v25): remove the inert config-helper stubs in this file (NXC-5164).
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use `NxAppWebpackPlugin` from `@nx/webpack/app-plugin`.
|
|
15
15
|
* This inert stub will be removed in Nx v25.
|
|
@@ -31,7 +31,7 @@ function warnWebpackComposeHelpersDeprecation() {
|
|
|
31
31
|
composeHelpersWarned = true;
|
|
32
32
|
devkit_1.logger.warn(exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE);
|
|
33
33
|
}
|
|
34
|
-
// TODO(v25): remove with the deprecated ssr-dev-server executor
|
|
34
|
+
// TODO(v25): remove with the deprecated ssr-dev-server executor (NXC-5167)
|
|
35
35
|
exports.WEBPACK_SSR_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/webpack:ssr-dev-server` executor is deprecated and will be removed in Nx v25. Run the server from source with the `@nx/js/tsx` plugin, with the browser build in watch mode as a continuous dependency. See https://nx.dev/docs/kb/replace-ssr-dev-server.';
|
|
36
36
|
function warnWebpackSsrDevServerExecutorDeprecation() {
|
|
37
37
|
devkit_1.logger.warn(exports.WEBPACK_SSR_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
|
|
@@ -3,6 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.resolveUserDefinedWebpackConfig = resolveUserDefinedWebpackConfig;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
5
|
const internal_2 = require("@nx/js/internal");
|
|
6
|
+
const node_module_1 = require("node:module");
|
|
7
|
+
// Node passes a stand-in require, without a cache, require.extensions or
|
|
8
|
+
// Module._load, when an ESM loader hook supplies this module's source, as
|
|
9
|
+
// Yarn PnP does.
|
|
10
|
+
if (!require.cache)
|
|
11
|
+
require = (0, node_module_1.createRequire)(__filename);
|
|
6
12
|
function resolveUserDefinedWebpackConfig(path, tsConfig,
|
|
7
13
|
/** Skip require cache and return latest content */
|
|
8
14
|
reload = false) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withNx = withNx;
|
|
4
4
|
const deprecation_1 = require("./deprecation");
|
|
5
|
-
// TODO(v25): remove the inert config-helper stubs in this file.
|
|
5
|
+
// TODO(v25): remove the inert config-helper stubs in this file (NXC-5164).
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use `NxAppWebpackPlugin` from `@nx/webpack/app-plugin`.
|
|
8
8
|
* This inert stub will be removed in Nx v25.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withWeb = withWeb;
|
|
4
4
|
const deprecation_1 = require("./deprecation");
|
|
5
|
-
// TODO(v25): remove the inert config-helper stubs in this file.
|
|
5
|
+
// TODO(v25): remove the inert config-helper stubs in this file (NXC-5164).
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use `NxAppWebpackPlugin` from `@nx/webpack/app-plugin`.
|
|
8
8
|
* This inert stub will be removed in Nx v25.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.1.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"tslib": "^2.3.0",
|
|
135
135
|
"webpack-node-externals": "^3.0.0",
|
|
136
136
|
"webpack-subresource-integrity": "^5.1.0",
|
|
137
|
-
"@nx/devkit": "24.0.
|
|
138
|
-
"@nx/js": "24.0.
|
|
137
|
+
"@nx/devkit": "24.1.0-beta.1",
|
|
138
|
+
"@nx/js": "24.1.0-beta.1"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"webpack": "^5.0.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
|
-
"nx": "24.0.
|
|
157
|
+
"nx": "24.1.0-beta.1"
|
|
158
158
|
},
|
|
159
159
|
"publishConfig": {
|
|
160
160
|
"access": "public"
|