@nx/webpack 21.6.1 → 21.6.3
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": "21.6.
|
|
3
|
+
"version": "21.6.3",
|
|
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,11 +64,11 @@
|
|
|
64
64
|
"webpack-dev-server": "^5.2.1",
|
|
65
65
|
"webpack-node-externals": "^3.0.0",
|
|
66
66
|
"webpack-subresource-integrity": "^5.1.0",
|
|
67
|
-
"@nx/devkit": "21.6.
|
|
68
|
-
"@nx/js": "21.6.
|
|
67
|
+
"@nx/devkit": "21.6.3",
|
|
68
|
+
"@nx/js": "21.6.3"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"nx": "21.6.
|
|
71
|
+
"nx": "21.6.3"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"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,CAsWN"}
|
|
@@ -302,9 +302,20 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
302
302
|
...config.module,
|
|
303
303
|
rules: [
|
|
304
304
|
...(config.module.rules ?? []),
|
|
305
|
-
// Images: Inline small images, and emit a separate file otherwise
|
|
305
|
+
// Images: Inline small images, and emit a separate file otherwise.
|
|
306
306
|
{
|
|
307
|
-
test: /\.(avif|bmp|gif|ico|jpe?g|png|
|
|
307
|
+
test: /\.(avif|bmp|gif|ico|jpe?g|png|webp)$/,
|
|
308
|
+
type: 'asset',
|
|
309
|
+
parser: {
|
|
310
|
+
dataUrlCondition: {
|
|
311
|
+
maxSize: 10_000, // 10 kB
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
// TODO(v22): Remove this but provide a migration in `@nx/react` to add @svgr/webpack in userland webpack config
|
|
316
|
+
// SVG: same as image but we need to separate it so it can be swapped for SVGR in the React plugin.
|
|
317
|
+
{
|
|
318
|
+
test: /\.svg$/,
|
|
308
319
|
type: 'asset',
|
|
309
320
|
parser: {
|
|
310
321
|
dataUrlCondition: {
|