@nx/webpack 23.0.0-beta.1 → 23.0.0-canary.20260428-b05d653
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": "23.0.0-
|
|
3
|
+
"version": "23.0.0-canary.20260428-b05d653",
|
|
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": {
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"webpack-dev-server": "^5.2.1",
|
|
66
66
|
"webpack-node-externals": "^3.0.0",
|
|
67
67
|
"webpack-subresource-integrity": "^5.1.0",
|
|
68
|
-
"@nx/devkit": "23.0.0-
|
|
69
|
-
"@nx/js": "23.0.0-
|
|
68
|
+
"@nx/devkit": "23.0.0-canary.20260428-b05d653",
|
|
69
|
+
"@nx/js": "23.0.0-canary.20260428-b05d653"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"nx": "23.0.0-
|
|
72
|
+
"nx": "23.0.0-canary.20260428-b05d653"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-web-config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/webpack/src/plugins/nx-webpack-plugin/lib/apply-web-config.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAIb,wBAAwB,EAEzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAavF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,mCAAmC,EAC5C,MAAM,GAAE,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAM,EAC9D,EACE,kBAAkB,GACnB,GAAE;IAID,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACzB,GACL,IAAI,
|
|
1
|
+
{"version":3,"file":"apply-web-config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/webpack/src/plugins/nx-webpack-plugin/lib/apply-web-config.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAIb,wBAAwB,EAEzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAavF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,mCAAmC,EAC5C,MAAM,GAAE,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAM,EAC9D,EACE,kBAAkB,GACnB,GAAE;IAID,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACzB,GACL,IAAI,CA2VN"}
|
|
@@ -118,7 +118,7 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
118
118
|
use: [
|
|
119
119
|
...(0, stylesheet_loaders_1.getCommonLoadersForCssModules)(options, includePaths),
|
|
120
120
|
{
|
|
121
|
-
loader:
|
|
121
|
+
loader: path.join(__dirname, '../../../utils/webpack/deprecated-less-loader.js'),
|
|
122
122
|
options: {
|
|
123
123
|
lessOptions: {
|
|
124
124
|
paths: includePaths,
|
|
@@ -163,7 +163,7 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
163
163
|
use: [
|
|
164
164
|
...(0, stylesheet_loaders_1.getCommonLoadersForGlobalCss)(options, includePaths),
|
|
165
165
|
{
|
|
166
|
-
loader:
|
|
166
|
+
loader: path.join(__dirname, '../../../utils/webpack/deprecated-less-loader.js'),
|
|
167
167
|
options: {
|
|
168
168
|
sourceMap: !!options.sourceMap,
|
|
169
169
|
lessOptions: {
|
|
@@ -210,7 +210,7 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
210
210
|
use: [
|
|
211
211
|
...(0, stylesheet_loaders_1.getCommonLoadersForGlobalStyle)(options, includePaths),
|
|
212
212
|
{
|
|
213
|
-
loader:
|
|
213
|
+
loader: path.join(__dirname, '../../../utils/webpack/deprecated-less-loader.js'),
|
|
214
214
|
options: {
|
|
215
215
|
sourceMap: !!options.sourceMap,
|
|
216
216
|
lessOptions: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const lessLoader = require('less-loader');
|
|
2
|
+
|
|
3
|
+
module.exports = function (...args) {
|
|
4
|
+
if (!process.env.__NX_LESS_DEPRECATION_WARNED) {
|
|
5
|
+
process.env.__NX_LESS_DEPRECATION_WARNED = '1';
|
|
6
|
+
console.warn(
|
|
7
|
+
'\n⚠️ Less support in Nx is deprecated and will be removed in a future version.\n' +
|
|
8
|
+
' Please migrate to CSS or SCSS.\n' +
|
|
9
|
+
' Existing .less imports continue to compile, but Nx generators no longer\n' +
|
|
10
|
+
' accept --style=less. To add new Less files, install less-loader manually\n' +
|
|
11
|
+
' and generate with --style=css, then rename the file to .less.\n'
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
return lessLoader.apply(this, args);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
if (lessLoader.raw) {
|
|
18
|
+
module.exports.raw = lessLoader.raw;
|
|
19
|
+
}
|