@nx/webpack 0.0.0-pr-29720-ac29e9e → 0.0.0-pr-30457-e6691c1
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": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-30457-e6691c1",
|
|
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": {
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"webpack-dev-server": "^5.0.4",
|
|
67
67
|
"webpack-node-externals": "^3.0.0",
|
|
68
68
|
"webpack-subresource-integrity": "^5.1.0",
|
|
69
|
-
"@nx/devkit": "0.0.0-pr-
|
|
70
|
-
"@nx/js": "0.0.0-pr-
|
|
69
|
+
"@nx/devkit": "0.0.0-pr-30457-e6691c1",
|
|
70
|
+
"@nx/js": "0.0.0-pr-30457-e6691c1"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -19,6 +19,10 @@ const IGNORED_WEBPACK_WARNINGS = [
|
|
|
19
19
|
/The comment file/i,
|
|
20
20
|
/could not find any license/i,
|
|
21
21
|
];
|
|
22
|
+
const extensionAlias = {
|
|
23
|
+
'.js': ['.ts', '.js'],
|
|
24
|
+
'.mjs': ['.mts', '.mjs'],
|
|
25
|
+
};
|
|
22
26
|
const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx'];
|
|
23
27
|
const mainFields = ['module', 'main'];
|
|
24
28
|
function applyBaseConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
@@ -286,6 +290,10 @@ function applyNxDependentConfig(options, config, { useNormalizedEntry } = {}) {
|
|
|
286
290
|
config.resolve = {
|
|
287
291
|
...config.resolve,
|
|
288
292
|
extensions: [...(config?.resolve?.extensions ?? []), ...extensions],
|
|
293
|
+
extensionAlias: {
|
|
294
|
+
...(config.resolve?.extensionAlias ?? {}),
|
|
295
|
+
...extensionAlias,
|
|
296
|
+
},
|
|
289
297
|
alias: {
|
|
290
298
|
...(config.resolve?.alias ?? {}),
|
|
291
299
|
...(options.fileReplacements?.reduce((aliases, replacement) => ({
|