@nx/webpack 23.1.0-pr.36127.e594f53 → 23.1.0-rc.0
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.
|
@@ -22,6 +22,7 @@ export declare function createLoaderFromCompiler(options: NormalizedNxAppWebpack
|
|
|
22
22
|
configFile?: undefined;
|
|
23
23
|
transpileOnly?: undefined;
|
|
24
24
|
experimentalWatchApi?: undefined;
|
|
25
|
+
compilerOptions?: undefined;
|
|
25
26
|
getCustomTransformers?: undefined;
|
|
26
27
|
};
|
|
27
28
|
} | {
|
|
@@ -33,6 +34,9 @@ export declare function createLoaderFromCompiler(options: NormalizedNxAppWebpack
|
|
|
33
34
|
configFile: string;
|
|
34
35
|
transpileOnly: boolean;
|
|
35
36
|
experimentalWatchApi: boolean;
|
|
37
|
+
compilerOptions: {
|
|
38
|
+
rootDir: string;
|
|
39
|
+
};
|
|
36
40
|
getCustomTransformers: (program: any) => {
|
|
37
41
|
before: any;
|
|
38
42
|
after: any;
|
|
@@ -41,6 +41,12 @@ function createLoaderFromCompiler(options) {
|
|
|
41
41
|
transpileOnly: !hasPlugin,
|
|
42
42
|
// https://github.com/TypeStrong/ts-loader/pull/685
|
|
43
43
|
experimentalWatchApi: true,
|
|
44
|
+
// ts-loader 9.5.7+ forwards the tsconfig rootDir to transpileModule, so
|
|
45
|
+
// workspace lib sources bundled from source (outside the app rootDir)
|
|
46
|
+
// fail with TS6059. rootDir only governs emit layout, which webpack owns
|
|
47
|
+
// here (the default transpile path emits JS, not declarations), so widen
|
|
48
|
+
// it to the workspace root to clear the error without altering output.
|
|
49
|
+
compilerOptions: { rootDir: options.root },
|
|
44
50
|
getCustomTransformers: (program) => ({
|
|
45
51
|
before: compilerPluginHooks.beforeHooks.map((hook) => hook(program)),
|
|
46
52
|
after: compilerPluginHooks.afterHooks.map((hook) => hook(program)),
|
|
@@ -6,9 +6,10 @@ const internal_1 = require("@nx/devkit/internal");
|
|
|
6
6
|
async function getWebpackE2EWebServerInfo(tree, projectName, configFilePath, isPluginBeingAdded, e2ePortOverride) {
|
|
7
7
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
8
8
|
let e2ePort = e2ePortOverride ?? 4200;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const servePort = (0, internal_1.readTargetDefaultsForTarget)('serve', nxJson.targetDefaults)
|
|
10
|
+
?.options?.port;
|
|
11
|
+
if (servePort) {
|
|
12
|
+
e2ePort = servePort;
|
|
12
13
|
}
|
|
13
14
|
return (0, internal_1.getE2EWebServerInfo)(tree, projectName, {
|
|
14
15
|
plugin: '@nx/webpack/plugin',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
"source-map-loader": "^5.0.0",
|
|
114
114
|
"style-loader": "^3.3.0",
|
|
115
115
|
"terser-webpack-plugin": "^5.3.3",
|
|
116
|
-
"ts-loader": "^9.
|
|
116
|
+
"ts-loader": "^9.5.7",
|
|
117
117
|
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
118
118
|
"tslib": "^2.3.0",
|
|
119
119
|
"webpack-node-externals": "^3.0.0",
|
|
120
120
|
"webpack-subresource-integrity": "^5.1.0",
|
|
121
|
-
"@nx/devkit": "23.1.0-
|
|
122
|
-
"@nx/js": "23.1.0-
|
|
121
|
+
"@nx/devkit": "23.1.0-rc.0",
|
|
122
|
+
"@nx/js": "23.1.0-rc.0"
|
|
123
123
|
},
|
|
124
124
|
"peerDependencies": {
|
|
125
125
|
"webpack": "^5.0.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
|
-
"nx": "23.1.0-
|
|
141
|
+
"nx": "23.1.0-rc.0"
|
|
142
142
|
},
|
|
143
143
|
"publishConfig": {
|
|
144
144
|
"access": "public"
|