@nx/angular-rspack 21.0.3 → 21.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.
- package/dist/lib/config/config-utils/browser-config.d.ts.map +1 -1
- package/dist/lib/config/config-utils/browser-config.js +5 -1
- package/dist/lib/config/config-utils/common-config.d.ts.map +1 -1
- package/dist/lib/config/config-utils/common-config.js +4 -3
- package/dist/lib/config/config-utils/server-config.d.ts.map +1 -1
- package/dist/lib/config/config-utils/server-config.js +5 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/browser-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAQtB,wBAAsB,gBAAgB,CACpC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"browser-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/browser-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAQtB,wBAAsB,gBAAgB,CACpC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,aAAa,CAAC,CAgFxB"}
|
|
@@ -15,7 +15,7 @@ async function getBrowserConfig(normalizedOptions, i18n, hashFormat, defaultConf
|
|
|
15
15
|
return {
|
|
16
16
|
...defaultConfig,
|
|
17
17
|
name: 'browser',
|
|
18
|
-
target: 'web',
|
|
18
|
+
target: ['web', 'es2015'],
|
|
19
19
|
entry: {
|
|
20
20
|
main: {
|
|
21
21
|
import: [
|
|
@@ -37,6 +37,10 @@ async function getBrowserConfig(normalizedOptions, i18n, hashFormat, defaultConf
|
|
|
37
37
|
chunkFilename: `[name]${hashFormat.chunk}.js`,
|
|
38
38
|
...(isDevServer ? {} : { scriptType: 'module', module: true }),
|
|
39
39
|
},
|
|
40
|
+
resolve: {
|
|
41
|
+
...defaultConfig.resolve,
|
|
42
|
+
mainFields: ['es2020', 'es2015', 'browser', 'module', 'main'],
|
|
43
|
+
},
|
|
40
44
|
optimization: (0, optimization_config_1.getOptimization)(normalizedOptions, 'browser'),
|
|
41
45
|
module: {
|
|
42
46
|
...defaultConfig.module,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/common-config.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAQtB,wBAAsB,eAAe,CACnC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,EAC/B,UAAU,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"common-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/common-config.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAQtB,wBAAsB,eAAe,CACnC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,EAC/B,UAAU,EAAE,UAAU,iDA6JvB"}
|
|
@@ -12,7 +12,6 @@ const watch_file_logs_plugin_1 = require("../../plugins/watch-file-logs-plugin")
|
|
|
12
12
|
const get_index_input_file_1 = require("../../utils/index-file/get-index-input-file");
|
|
13
13
|
async function getCommonConfig(normalizedOptions, i18n, i18nHash, hashFormat) {
|
|
14
14
|
const isDevServer = process.env['WEBPACK_SERVE'];
|
|
15
|
-
const isProduction = process.env['NODE_ENV'] === 'production';
|
|
16
15
|
const crossOriginLoading = (0, helpers_1.getCrossOriginLoading)(normalizedOptions);
|
|
17
16
|
const sourceMapOptions = (0, sourcemap_utils_1.configureSourceMap)(normalizedOptions.sourceMap);
|
|
18
17
|
const stylesConfig = await (0, style_config_utils_1.getStylesConfig)(normalizedOptions, hashFormat, normalizedOptions.hasServer ? 'server' : 'browser');
|
|
@@ -27,7 +26,10 @@ async function getCommonConfig(normalizedOptions, i18n, i18nHash, hashFormat) {
|
|
|
27
26
|
const defaultConfig = {
|
|
28
27
|
context: normalizedOptions.root,
|
|
29
28
|
profile: normalizedOptions.statsJson,
|
|
30
|
-
mode:
|
|
29
|
+
mode: normalizedOptions.optimization.scripts ||
|
|
30
|
+
normalizedOptions.optimization.styles.minify
|
|
31
|
+
? 'production'
|
|
32
|
+
: 'development',
|
|
31
33
|
devtool: normalizedOptions.sourceMap.scripts ? 'source-map' : false,
|
|
32
34
|
infrastructureLogging: {
|
|
33
35
|
appendOnly: false,
|
|
@@ -53,7 +55,6 @@ async function getCommonConfig(normalizedOptions, i18n, i18nHash, hashFormat) {
|
|
|
53
55
|
extensions: ['.ts', '.tsx', '.mjs', '.js'],
|
|
54
56
|
symlinks: !normalizedOptions.preserveSymlinks,
|
|
55
57
|
modules: ['node_modules'],
|
|
56
|
-
mainFields: ['es2020', 'es2015', 'browser', 'module', 'main'],
|
|
57
58
|
conditionNames: ['es2020', 'es2015', '...'],
|
|
58
59
|
tsConfig: {
|
|
59
60
|
configFile: normalizedOptions.tsConfig,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/server-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA4B,MAAM,cAAc,CAAC;AAE5E,OAAO,KAAK,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAOtB,wBAAsB,eAAe,CACnC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/server-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA4B,MAAM,cAAc,CAAC;AAE5E,OAAO,KAAK,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAOtB,wBAAsB,eAAe,CACnC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,aAAa,CAAC,CAmFxB"}
|
|
@@ -16,7 +16,7 @@ async function getServerConfig(normalizedOptions, i18n, defaultConfig) {
|
|
|
16
16
|
...defaultConfig,
|
|
17
17
|
dependencies: ['browser'],
|
|
18
18
|
name: 'server',
|
|
19
|
-
target: 'node',
|
|
19
|
+
target: ['node', 'es2015'],
|
|
20
20
|
entry: {
|
|
21
21
|
server: {
|
|
22
22
|
import: [
|
|
@@ -37,6 +37,10 @@ async function getServerConfig(normalizedOptions, i18n, defaultConfig) {
|
|
|
37
37
|
chunkFilename: '[name].js',
|
|
38
38
|
library: { type: 'commonjs' },
|
|
39
39
|
},
|
|
40
|
+
resolve: {
|
|
41
|
+
...defaultConfig.resolve,
|
|
42
|
+
mainFields: ['es2020', 'es2015', 'module', 'main'],
|
|
43
|
+
},
|
|
40
44
|
devServer: await (0, dev_server_config_utils_1.getDevServerConfig)(normalizedOptions, 'server'),
|
|
41
45
|
externals: normalizedOptions.externalDependencies,
|
|
42
46
|
optimization: (0, optimization_config_1.getOptimization)(normalizedOptions, 'server'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular-rspack",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"tslib": "^2.3.0",
|
|
75
75
|
"webpack-merge": "^6.0.1",
|
|
76
76
|
"ws": "^8.18.0",
|
|
77
|
-
"@nx/angular-rspack-compiler": "21.0.
|
|
77
|
+
"@nx/angular-rspack-compiler": "21.0.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@code-pushup/models": "^0.63.0",
|