@nx/webpack 23.0.0-beta.15 → 23.0.0-beta.16
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": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.16",
|
|
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": "23.0.0-beta.
|
|
69
|
-
"@nx/js": "23.0.0-beta.
|
|
68
|
+
"@nx/devkit": "23.0.0-beta.16",
|
|
69
|
+
"@nx/js": "23.0.0-beta.16"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"nx": "23.0.0-beta.
|
|
72
|
+
"nx": "23.0.0-beta.16"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
@@ -73,7 +73,7 @@ async function convertConfigToWebpackPluginGenerator(tree, options) {
|
|
|
73
73
|
// To enhance configurations after Nx plugins have applied, you can add a new plugin with the \`apply\` method.
|
|
74
74
|
// e.g. \`{ apply: (compiler) => { /* modify compiler.options */ }\`
|
|
75
75
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
76
|
-
await useLegacyNxPlugin(require('./webpack.config.old'), options),
|
|
76
|
+
await useLegacyNxPlugin(require('./webpack.config.old${ext}'), options),
|
|
77
77
|
],
|
|
78
78
|
});
|
|
79
79
|
`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-user-defined-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/webpack/src/utils/webpack/resolve-user-defined-webpack-config.ts"],"names":[],"mappings":"AAGA,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;AAChB,mDAAmD;AACnD,MAAM,UAAQ,
|
|
1
|
+
{"version":3,"file":"resolve-user-defined-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/webpack/src/utils/webpack/resolve-user-defined-webpack-config.ts"],"names":[],"mappings":"AAGA,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;AAChB,mDAAmD;AACnD,MAAM,UAAQ,OAiCf"}
|
|
@@ -18,9 +18,7 @@ reload = false) {
|
|
|
18
18
|
if (!/\.(ts|mts|cts)$/.test(path)) {
|
|
19
19
|
return require(path);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
const maybeCustomWebpackConfig = require(path);
|
|
23
|
-
cleanupTranspiler();
|
|
21
|
+
const maybeCustomWebpackConfig = (0, internal_2.loadTsFile)(path, tsConfig);
|
|
24
22
|
// If the user provides a configuration in TS file
|
|
25
23
|
// then there are 3 cases for exporing an object. The first one is:
|
|
26
24
|
// `module.exports = { ... }`. And the second one is:
|