@nx/webpack 22.7.0-beta.11 → 22.7.0-beta.13
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": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.13",
|
|
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": "22.7.0-beta.
|
|
69
|
-
"@nx/js": "22.7.0-beta.
|
|
68
|
+
"@nx/devkit": "22.7.0-beta.13",
|
|
69
|
+
"@nx/js": "22.7.0-beta.13"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"nx": "22.7.0-beta.
|
|
72
|
+
"nx": "22.7.0-beta.13"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx-tsconfig-paths-webpack-plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/webpack/src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC9B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"nx-tsconfig-paths-webpack-plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/webpack/src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC9B,MAAM,SAAS,CAAC;AAQjB,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AAGzG,qBAAa,4BAA4B;IAC3B,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,mCAAmC;IAOhE,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAyB/B,yBAAyB,CACvB,MAAM,EAAE,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAC,EACzD,OAAO,EAAE,mCAAmC,GAC3C,IAAI;CAoCR"}
|
|
@@ -6,6 +6,7 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
6
6
|
const tsconfig_paths_webpack_plugin_1 = require("tsconfig-paths-webpack-plugin");
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
8
|
const buildable_libs_utils_1 = require("@nx/js/src/utils/buildable-libs-utils");
|
|
9
|
+
const ts_config_1 = require("@nx/js/src/utils/typescript/ts-config");
|
|
9
10
|
const webpack_nx_build_coordination_plugin_1 = require("../webpack-nx-build-coordination-plugin");
|
|
10
11
|
class NxTsconfigPathsWebpackPlugin {
|
|
11
12
|
constructor(options) {
|
|
@@ -24,10 +25,12 @@ class NxTsconfigPathsWebpackPlugin {
|
|
|
24
25
|
...compiler.options.resolve,
|
|
25
26
|
plugins: compiler.options.resolve?.plugins ?? [],
|
|
26
27
|
};
|
|
28
|
+
const configFile = !path.isAbsolute(this.options.tsConfig)
|
|
29
|
+
? path.join(devkit_1.workspaceRoot, this.options.tsConfig)
|
|
30
|
+
: this.options.tsConfig;
|
|
27
31
|
compiler.options.resolve.plugins.push(new tsconfig_paths_webpack_plugin_1.TsconfigPathsPlugin({
|
|
28
|
-
configFile
|
|
29
|
-
|
|
30
|
-
: this.options.tsConfig,
|
|
32
|
+
configFile,
|
|
33
|
+
baseUrl: (0, ts_config_1.resolvePathsBaseUrl)(configFile),
|
|
31
34
|
extensions: Array.from(extensions),
|
|
32
35
|
mainFields: ['module', 'main'],
|
|
33
36
|
}));
|