@nx/webpack 24.0.2 → 24.0.4
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.
|
@@ -14,13 +14,6 @@ function hasAnotherWebpackConfig(tree, projectRoot) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
function isNestProject(project) {
|
|
18
|
-
for (const target in project.targets) {
|
|
19
|
-
if (project.targets[target].executor === '@nx/js:node') {
|
|
20
|
-
return `The project ${project.name} is using the '@nx/js:node' executor. At the moment, we do not support migrating such projects.`;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
17
|
/**
|
|
25
18
|
* Validates the project to ensure it can be migrated
|
|
26
19
|
*
|
|
@@ -38,6 +31,5 @@ function validateProject(tree, project) {
|
|
|
38
31
|
if (containsMfeExecutor) {
|
|
39
32
|
return `The project ${project.name} is using Module Federation. At the moment, we don't support migrating projects that use Module Federation.`;
|
|
40
33
|
}
|
|
41
|
-
|
|
42
|
-
return hasAnotherConfig || isNestProject(project);
|
|
34
|
+
return hasAnotherWebpackConfig(tree, project.root);
|
|
43
35
|
}
|
|
@@ -4,7 +4,7 @@ interface PostcssOptions {
|
|
|
4
4
|
config?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function getCommonLoadersForCssModules(options: NormalizedNxAppWebpackPluginOptions, includePaths: string[]): ({
|
|
7
|
-
loader:
|
|
7
|
+
loader: string;
|
|
8
8
|
options?: undefined;
|
|
9
9
|
} | {
|
|
10
10
|
loader: string;
|
|
@@ -30,7 +30,7 @@ export declare function getCommonLoadersForCssModules(options: NormalizedNxAppWe
|
|
|
30
30
|
})[];
|
|
31
31
|
export declare function getCommonLoadersForGlobalCss(options: NormalizedNxAppWebpackPluginOptions, includePaths: string[]): ({
|
|
32
32
|
options?: undefined;
|
|
33
|
-
loader:
|
|
33
|
+
loader: string;
|
|
34
34
|
} | {
|
|
35
35
|
loader: string;
|
|
36
36
|
options: {
|
|
@@ -47,7 +47,7 @@ export declare function getCommonLoadersForGlobalCss(options: NormalizedNxAppWeb
|
|
|
47
47
|
};
|
|
48
48
|
})[];
|
|
49
49
|
export declare function getCommonLoadersForGlobalStyle(options: NormalizedNxAppWebpackPluginOptions, includePaths: string[]): ({
|
|
50
|
-
loader:
|
|
50
|
+
loader: string;
|
|
51
51
|
options: {
|
|
52
52
|
implementation?: undefined;
|
|
53
53
|
postcssOptions?: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"less-loader": "^12.2.0",
|
|
118
118
|
"license-webpack-plugin": "^4.0.2",
|
|
119
119
|
"loader-utils": "^2.0.3",
|
|
120
|
-
"mini-css-extract-plugin": "~2.
|
|
120
|
+
"mini-css-extract-plugin": "~2.10.2",
|
|
121
121
|
"parse5": "4.0.0",
|
|
122
122
|
"postcss": "^8.4.38",
|
|
123
123
|
"postcss-import": "~14.1.0",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"tslib": "^2.3.0",
|
|
135
135
|
"webpack-node-externals": "^3.0.0",
|
|
136
136
|
"webpack-subresource-integrity": "^5.1.0",
|
|
137
|
-
"@nx/devkit": "24.0.
|
|
138
|
-
"@nx/js": "24.0.
|
|
137
|
+
"@nx/devkit": "24.0.4",
|
|
138
|
+
"@nx/js": "24.0.4"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"webpack": "^5.0.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
|
-
"nx": "24.0.
|
|
157
|
+
"nx": "24.0.4"
|
|
158
158
|
},
|
|
159
159
|
"publishConfig": {
|
|
160
160
|
"access": "public"
|