@nx/webpack 20.2.0-beta.1 → 20.2.0-beta.2
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": "20.2.0-beta.
|
|
3
|
+
"version": "20.2.0-beta.2",
|
|
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": {
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"webpack-dev-server": "^5.0.4",
|
|
70
70
|
"webpack-node-externals": "^3.0.0",
|
|
71
71
|
"webpack-subresource-integrity": "^5.1.0",
|
|
72
|
-
"@nx/devkit": "20.2.0-beta.
|
|
73
|
-
"@nx/js": "20.2.0-beta.
|
|
72
|
+
"@nx/devkit": "20.2.0-beta.2",
|
|
73
|
+
"@nx/js": "20.2.0-beta.2"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
@@ -62,7 +62,7 @@ export interface WebpackExecutorOptions {
|
|
|
62
62
|
polyfills?: string;
|
|
63
63
|
progress?: boolean;
|
|
64
64
|
runtimeChunk?: boolean;
|
|
65
|
-
sourceMap?: boolean |
|
|
65
|
+
sourceMap?: boolean | string;
|
|
66
66
|
statsJson?: boolean;
|
|
67
67
|
target?: string;
|
|
68
68
|
transformers?: TransformerEntry[];
|
|
@@ -70,6 +70,11 @@
|
|
|
70
70
|
"type": "boolean",
|
|
71
71
|
"description": "Use a separate bundle containing the runtime."
|
|
72
72
|
},
|
|
73
|
+
"skipTypeChecking": {
|
|
74
|
+
"alias": "typeCheck",
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "Skip the type checking. Default is `false`."
|
|
77
|
+
},
|
|
73
78
|
"sourceMap": {
|
|
74
79
|
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
75
80
|
"oneOf": [
|
|
@@ -85,6 +90,10 @@
|
|
|
85
90
|
"type": "boolean",
|
|
86
91
|
"description": "Log progress to the console while building."
|
|
87
92
|
},
|
|
93
|
+
"poll": {
|
|
94
|
+
"type": "number",
|
|
95
|
+
"description": "Enable and define the file watching poll time period."
|
|
96
|
+
},
|
|
88
97
|
"assets": {
|
|
89
98
|
"type": "array",
|
|
90
99
|
"description": "List of static application assets.",
|
|
@@ -60,11 +60,7 @@ function applyNxIndependentConfig(options, config) {
|
|
|
60
60
|
config.cache =
|
|
61
61
|
options.target === 'node' && options.watch ? { type: 'memory' } : undefined;
|
|
62
62
|
config.devtool =
|
|
63
|
-
options.sourceMap === '
|
|
64
|
-
? 'hidden-source-map'
|
|
65
|
-
: options.sourceMap
|
|
66
|
-
? 'source-map'
|
|
67
|
-
: false;
|
|
63
|
+
options.sourceMap === true ? 'source-map' : options.sourceMap;
|
|
68
64
|
config.output = {
|
|
69
65
|
...config.output,
|
|
70
66
|
libraryTarget: config.output?.libraryTarget ??
|
|
@@ -173,7 +173,7 @@ export interface NxAppWebpackPluginOptions {
|
|
|
173
173
|
/**
|
|
174
174
|
* Generate source maps.
|
|
175
175
|
*/
|
|
176
|
-
sourceMap?: boolean |
|
|
176
|
+
sourceMap?: boolean | string;
|
|
177
177
|
/**
|
|
178
178
|
* When `true`, `process.env.NODE_ENV` will be excluded from the bundle. Useful for building a web application to run in a Node environment.
|
|
179
179
|
*/
|